diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 2f347c07..8b2d9c86 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -17020,7 +17020,7 @@ window.textsecure.messaging = function() { doSendMessage = function(number, devicesForNumber, recurse) { var groupUpdate = Promise.resolve(true); - if (message.group && message.group.id) + if (message.group && message.group.id && message.group.type != textsecure.protobuf.PushMessageContent.GroupContext.Type.QUIT) groupUpdate = refreshGroup(number, message.group.id, devicesForNumber); return groupUpdate.then(function() { return sendMessageToDevices(timestamp, number, devicesForNumber, message).then(function(result) { diff --git a/libtextsecure/sendmessage.js b/libtextsecure/sendmessage.js index c4628536..cd3c62a0 100644 --- a/libtextsecure/sendmessage.js +++ b/libtextsecure/sendmessage.js @@ -179,7 +179,7 @@ window.textsecure.messaging = function() { doSendMessage = function(number, devicesForNumber, recurse) { var groupUpdate = Promise.resolve(true); - if (message.group && message.group.id) + if (message.group && message.group.id && message.group.type != textsecure.protobuf.PushMessageContent.GroupContext.Type.QUIT) groupUpdate = refreshGroup(number, message.group.id, devicesForNumber); return groupUpdate.then(function() { return sendMessageToDevices(timestamp, number, devicesForNumber, message).then(function(result) {