Sync end session messages
// FREEBIE
This commit is contained in:
@@ -39263,6 +39263,7 @@ MessageSender.prototype = {
|
||||
proto.body = "TERMINATE";
|
||||
proto.flags = textsecure.protobuf.DataMessage.Flags.END_SESSION;
|
||||
return this.sendIndividualProto(number, proto, timestamp).then(function(res) {
|
||||
return this.sendSyncMessage(proto.toArrayBuffer(), timestamp, number).then(function() {
|
||||
return textsecure.storage.protocol.getDeviceIds(number).then(function(deviceIds) {
|
||||
return Promise.all(deviceIds.map(function(deviceId) {
|
||||
var address = new libsignal.SignalProtocolAddress(number, deviceId);
|
||||
@@ -39274,6 +39275,7 @@ MessageSender.prototype = {
|
||||
});
|
||||
});
|
||||
});
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
sendMessageToGroup: function(groupId, messageText, attachments, timestamp, expireTimer) {
|
||||
|
@@ -338,6 +338,7 @@ MessageSender.prototype = {
|
||||
proto.body = "TERMINATE";
|
||||
proto.flags = textsecure.protobuf.DataMessage.Flags.END_SESSION;
|
||||
return this.sendIndividualProto(number, proto, timestamp).then(function(res) {
|
||||
return this.sendSyncMessage(proto.toArrayBuffer(), timestamp, number).then(function() {
|
||||
return textsecure.storage.protocol.getDeviceIds(number).then(function(deviceIds) {
|
||||
return Promise.all(deviceIds.map(function(deviceId) {
|
||||
var address = new libsignal.SignalProtocolAddress(number, deviceId);
|
||||
@@ -349,6 +350,7 @@ MessageSender.prototype = {
|
||||
});
|
||||
});
|
||||
});
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
sendMessageToGroup: function(groupId, messageText, attachments, timestamp, expireTimer) {
|
||||
|
Reference in New Issue
Block a user