Drop stories from users we would normally show a message request for.

fork-5.53.8
Alex Hart 2022-03-16 16:19:09 -03:00 zatwierdzone przez Cody Henthorne
rodzic 8fc2d5be37
commit b1f7dbefd8
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1338,6 +1338,11 @@ public final class MessageContentProcessor {
return;
}
if (!(senderRecipient.isProfileSharing() || senderRecipient.isSystemContact())) {
warn(content.getTimestamp(), "Dropping story from an untrusted user.");
return;
}
Optional<InsertResult> insertResult;
MessageDatabase database = SignalDatabase.mms();