kopia lustrzana https://github.com/ryukoposting/Signal-Android
Never show stories from blocked users.
rodzic
42d2d415d6
commit
f6356c9720
|
@ -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
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue