From f23403f82b885f4396623113ee7487bdbd0c761f Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 23 Dec 2014 15:01:54 -0800 Subject: [PATCH] Fix arguments to sendMessageProto in tryMessageAgain As ov ccc98d2 sendMessageProto takes a timestamp for the first argument, in service of app-level delivery receipts. --- js/sendmessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sendmessage.js b/js/sendmessage.js index d4acdc3f..6b4ee463 100644 --- a/js/sendmessage.js +++ b/js/sendmessage.js @@ -119,7 +119,7 @@ window.textsecure.messaging = function() { message.fetch().then(function() { textsecure.storage.removeEncrypted("devices" + number); var proto = textsecure.protobuf.PushMessageContent.decode(encodedMessage, 'binary'); - sendMessageProto([number], proto, function(res) { + sendMessageProto(message.get('sent_at'), [number], proto, function(res) { if (res.failure.length > 0) { message.set('errors', res.failure); }