mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Prevent system from displaying -1 other groups in common when there is 0 group in common.
This commit is contained in:
committed by
Greyson Parrelli
parent
b98e09aedd
commit
3b0878f493
@@ -87,6 +87,7 @@ public class ReviewCardViewModel extends ViewModel {
|
||||
@WorkerThread
|
||||
private @NonNull List<ReviewCard> transformReviewRecipients(boolean isSelfGroupAdmin, @NonNull List<ReviewRecipient> reviewRecipients) {
|
||||
return Stream.of(reviewRecipients)
|
||||
.filter(r -> repository.loadGroupsInCommonCount(r) > 0)
|
||||
.map(r -> new ReviewCard(r,
|
||||
repository.loadGroupsInCommonCount(r) - (isGroupThread ? 1 : 0),
|
||||
getCardType(r),
|
||||
|
||||
Reference in New Issue
Block a user