Fix being re-added to a group you previously left

Negate the flag marking the group as left. Fixes #1207.

// FREEBIE
This commit is contained in:
lilia 2017-05-29 21:36:08 -07:00 committed by Lilia
parent 13a91eece8
commit 3dbb21c53c

View file

@ -386,6 +386,10 @@
if (difference.length > 0) {
group_update.joined = difference;
}
if (conversation.get('left')) {
console.log('re-added to a left group');
attributes.left = false;
}
}
else if (dataMessage.group.type === textsecure.protobuf.GroupContext.Type.QUIT) {
if (source == textsecure.storage.user.getNumber()) {