mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Never show stories from blocked users.
This commit is contained in:
@@ -3173,6 +3173,12 @@ public final class MessageContentProcessor {
|
||||
return groupRecord.isPresent() && groupRecord.get().isAnnouncementGroup() && !groupRecord.get().getAdmins().contains(sender);
|
||||
}
|
||||
}
|
||||
} else if (content.getStoryMessage().isPresent()) {
|
||||
if (conversation.isGroup() && conversation.isBlocked()) {
|
||||
return true;
|
||||
} else {
|
||||
return sender.isBlocked();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -49,7 +49,7 @@ class StoriesLandingRepository(context: Context) {
|
||||
mapping[myStories] = list + it
|
||||
}
|
||||
|
||||
if (!recipient.isDistributionList) {
|
||||
if (!recipient.isDistributionList && !recipient.isBlocked) {
|
||||
val list = mapping[recipient] ?: emptyList()
|
||||
mapping[recipient] = list + it
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user