Skip to content

Commit

Permalink
Fix being re-added to a group you previously left
Browse files Browse the repository at this point in the history
Negate the flag marking the group as left. Fixes #1207.

// FREEBIE
  • Loading branch information
liliakai committed May 30, 2017
1 parent 13a91ee commit 3dbb21c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/models/messages.js
Expand Up @@ -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()) {
Expand Down

0 comments on commit 3dbb21c

Please sign in to comment.