Fix arguments to sendMessageProto in tryMessageAgain

As ov ccc98d2 sendMessageProto takes a timestamp for the first argument,
in service of app-level delivery receipts.
This commit is contained in:
lilia 2014-12-23 15:01:54 -08:00
parent f9e68be45b
commit f23403f82b

View file

@ -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);
}