Skip to content

Commit

Permalink
Do not show typing indicators for inactive groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-signal authored and greyson-signal committed Jul 19, 2020
1 parent a59e214 commit 2db2b06
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1778,8 +1778,9 @@ private boolean shouldIgnore(@Nullable SignalServiceContent content)
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();
GroupId groupId = GroupId.push(content.getTypingMessage().get().getGroupId().get());
Recipient groupRecipient = Recipient.externalGroup(context, groupId);
return groupRecipient.isBlocked() || !groupRecipient.isActiveGroup();
} else {
return sender.isBlocked();
}
Expand Down

0 comments on commit 2db2b06

Please sign in to comment.