Do not include destination on group sync messages

This commit is contained in:
lilia 2015-05-18 14:39:47 -07:00
parent 1ed0ef5bc3
commit 090cc84452
2 changed files with 8 additions and 4 deletions

View file

@ -39797,7 +39797,9 @@ window.textsecure.messaging = function() {
if (myDevice != 1) {
var sync_message = textsecure.protobuf.PushMessageContent.decode(message.encode());
sync_message.sync = new textsecure.protobuf.PushMessageContent.SyncMessageContext();
sync_message.sync.destination = destination;
if (destination) {
sync_message.sync.destination = destination;
}
sync_message.sync.timestamp = timestamp;
return sendIndividualProto(myNumber, sync_message, Date.now());
}
@ -39816,7 +39818,7 @@ window.textsecure.messaging = function() {
resolve();
});
}).then(function() {
return sendSyncMessage(proto, timestamp, getString(proto.group.id));
return sendSyncMessage(proto, timestamp);
});
}

View file

@ -274,7 +274,9 @@ window.textsecure.messaging = function() {
if (myDevice != 1) {
var sync_message = textsecure.protobuf.PushMessageContent.decode(message.encode());
sync_message.sync = new textsecure.protobuf.PushMessageContent.SyncMessageContext();
sync_message.sync.destination = destination;
if (destination) {
sync_message.sync.destination = destination;
}
sync_message.sync.timestamp = timestamp;
return sendIndividualProto(myNumber, sync_message, Date.now());
}
@ -293,7 +295,7 @@ window.textsecure.messaging = function() {
resolve();
});
}).then(function() {
return sendSyncMessage(proto, timestamp, getString(proto.group.id));
return sendSyncMessage(proto, timestamp);
});
}