Skip to content

Commit 71b9f51

Browse files
committed
Ignore mutual groups where the local user is not a member or the remote user is not a full member.
1 parent ae3a6ab commit 71b9f51

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SignalServiceKit/src/Contacts/Threads/TSGroupThread.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2020 Open Whisper Systems. All rights reserved.
2+
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
33
//
44

55
#import "TSGroupThread.h"
@@ -139,7 +139,9 @@ + (nullable instancetype)fetchWithGroupId:(NSData *)groupId transaction:(SDSAnyR
139139
block:^(TSThread *thread, BOOL *stop) {
140140
if ([thread isKindOfClass:[TSGroupThread class]]) {
141141
TSGroupThread *groupThread = (TSGroupThread *)thread;
142-
if ([groupThread.groupModel.groupMembers containsObject:address]) {
142+
if ([groupThread.groupModel.groupMembership.fullMembers
143+
containsObject:address]
144+
&& groupThread.isLocalUserFullMember) {
143145
[groupThreads addObject:groupThread];
144146
}
145147
}

0 commit comments

Comments
 (0)