Remove MMS groups from message request logic.

This commit is contained in:
Alex Hart
2020-03-31 16:00:26 -03:00
committed by GitHub
parent 24528bf101
commit 2f879ce4d6
3 changed files with 7 additions and 7 deletions

View File

@@ -235,7 +235,7 @@ public class RecipientUtil {
@WorkerThread
private static boolean isProfileSharedViaGroup(@NonNull Context context, @NonNull Recipient recipient) {
return Stream.of(DatabaseFactory.getGroupDatabase(context).getGroupsContainingMember(recipient.getId()))
return Stream.of(DatabaseFactory.getGroupDatabase(context).getPushGroupsContainingMember(recipient.getId()))
.anyMatch(group -> Recipient.resolved(group.getRecipientId()).isProfileSharing());
}
}