Block unknown group messages from blocked senders.

master
Alan Evans 2020-10-05 12:30:29 -03:00 committed by GitHub
parent e75a03b6f8
commit a5dbb5d91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1830,7 +1830,7 @@ public final class PushProcessMessageJob extends BaseJob {
Optional<GroupId> groupId = GroupUtil.idFromGroupContext(message.getGroupContext());
if (groupId.isPresent() && groupDatabase.isUnknownGroup(groupId.get())) {
return false;
return sender.isBlocked();
}
boolean isTextMessage = message.getBody().isPresent();