Groups: Fixes issue discussed in #248

Link: https://github.com/WhisperSystems/Signal-iOS/pull/248#discussion-diff-22403332
Fixes issue with android not being able to create a group due to update group messages being interpreted as unknown group
pull/1/head
Christine Corbett 10 years ago committed by Frederic Jacobs
parent 0d7de05a13
commit 86aea62b86

@ -186,12 +186,12 @@
[self.dbConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
GroupModel *emptyModelToFillOutId = [[GroupModel alloc] initWithTitle:nil memberIds:nil image:nil groupId:content.group.id]; // TODO refactor the TSGroupThread to just take in an ID (as it is all that it uses). Should not take in more than it uses
TSGroupThread *gThread = [TSGroupThread threadWithGroupModel:emptyModelToFillOutId transaction:transaction];
if(gThread==nil) {
if(gThread==nil && content.group.type != PushMessageContentGroupContextTypeUpdate) {
ignoreMessage = YES;
}
}];
if(ignoreMessage) {
DDLogDebug(@"Received message from group that I left, ignoring");
DDLogDebug(@"Received message from group that I left or don't know about, ignoring");
return;
}

Loading…
Cancel
Save