Fix issue with typing indicators in blocked groups.

master
Greyson Parrelli 2020-06-10 14:28:12 -04:00
parent e12ea60d85
commit 7642b7cc72
1 changed files with 8 additions and 1 deletions

View File

@ -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;