Fix issue with typing indicators in blocked groups.
parent
e12ea60d85
commit
7642b7cc72
|
@ -1772,8 +1772,15 @@ public final class PushProcessMessageJob extends BaseJob {
|
|||
} else {
|
||||
return sender.isBlocked();
|
||||
}
|
||||
} else if (content.getCallMessage().isPresent() || content.getTypingMessage().isPresent()) {
|
||||
} else if (content.getCallMessage().isPresent()) {
|
||||
return sender.isBlocked();
|
||||
} else if (content.getTypingMessage().isPresent()) {
|
||||
if (content.getTypingMessage().get().getGroupId().isPresent()) {
|
||||
GroupId groupId = GroupId.push(content.getTypingMessage().get().getGroupId().get());
|
||||
return Recipient.externalGroup(context, groupId).isBlocked();
|
||||
} else {
|
||||
return sender.isBlocked();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue