Block unknown group messages from blocked senders.
parent
e75a03b6f8
commit
a5dbb5d91f
|
@ -1830,7 +1830,7 @@ public final class PushProcessMessageJob extends BaseJob {
|
||||||
Optional<GroupId> groupId = GroupUtil.idFromGroupContext(message.getGroupContext());
|
Optional<GroupId> groupId = GroupUtil.idFromGroupContext(message.getGroupContext());
|
||||||
|
|
||||||
if (groupId.isPresent() && groupDatabase.isUnknownGroup(groupId.get())) {
|
if (groupId.isPresent() && groupDatabase.isUnknownGroup(groupId.get())) {
|
||||||
return false;
|
return sender.isBlocked();
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isTextMessage = message.getBody().isPresent();
|
boolean isTextMessage = message.getBody().isPresent();
|
||||||
|
|
Loading…
Reference in New Issue