Fix tryMessageAgain
// FREEBIE
This commit is contained in:
@@ -39423,7 +39423,8 @@ MessageReceiver.prototype = {
|
|||||||
then(updateAttachment);
|
then(updateAttachment);
|
||||||
},
|
},
|
||||||
tryMessageAgain: function(from, encodedMessage) {
|
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]);
|
var finalMessage = textsecure.protobuf.DataMessage.decode(res[0]);
|
||||||
|
|
||||||
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
|
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
|
||||||
|
@@ -246,7 +246,8 @@ MessageReceiver.prototype = {
|
|||||||
then(updateAttachment);
|
then(updateAttachment);
|
||||||
},
|
},
|
||||||
tryMessageAgain: function(from, encodedMessage) {
|
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]);
|
var finalMessage = textsecure.protobuf.DataMessage.decode(res[0]);
|
||||||
|
|
||||||
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
|
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
|
||||||
|
Reference in New Issue
Block a user