Fix tryMessageAgain
// FREEBIE
This commit is contained in:
parent
08b864b57c
commit
46c9a7fafb
2 changed files with 4 additions and 2 deletions
|
@ -39423,7 +39423,8 @@ MessageReceiver.prototype = {
|
|||
then(updateAttachment);
|
||||
},
|
||||
tryMessageAgain: function(from, encodedMessage) {
|
||||
return textsecure.protocol_wrapper.handlePreKeyWhisperMessage(from, encodedMessage).then(function(res) {
|
||||
var bytes = dcodeIO.ByteBuffer.wrap(encodedMessage);
|
||||
return textsecure.protocol_wrapper.handlePreKeyWhisperMessage(from, bytes).then(function(res) {
|
||||
var finalMessage = textsecure.protobuf.DataMessage.decode(res[0]);
|
||||
|
||||
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
|
||||
|
|
|
@ -246,7 +246,8 @@ MessageReceiver.prototype = {
|
|||
then(updateAttachment);
|
||||
},
|
||||
tryMessageAgain: function(from, encodedMessage) {
|
||||
return textsecure.protocol_wrapper.handlePreKeyWhisperMessage(from, encodedMessage).then(function(res) {
|
||||
var bytes = dcodeIO.ByteBuffer.wrap(encodedMessage);
|
||||
return textsecure.protocol_wrapper.handlePreKeyWhisperMessage(from, bytes).then(function(res) {
|
||||
var finalMessage = textsecure.protobuf.DataMessage.decode(res[0]);
|
||||
|
||||
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
|
||||
|
|
Loading…
Reference in a new issue