Drop stories from inactive groups.

fork-5.53.8
Alex Hart 2022-04-19 15:14:06 -03:00
rodzic 7da5b2cdef
commit d1d63d83dc
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1353,8 +1353,8 @@ public final class MessageContentProcessor {
return;
}
if (!threadRecipient.isGroup() && !(senderRecipient.isProfileSharing() || senderRecipient.isSystemContact())) {
warn(content.getTimestamp(), "Dropping non-group story from an untrusted user.");
if (!threadRecipient.isActiveGroup() && !(senderRecipient.isProfileSharing() || senderRecipient.isSystemContact())) {
warn(content.getTimestamp(), "Dropping story from an untrusted source.");
return;
}