Skip to content

Commit

Permalink
Fix issue with typing indicators in blocked groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Jun 10, 2020
1 parent e12ea60 commit 7642b7c
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -1772,8 +1772,15 @@ private boolean shouldIgnore(@Nullable SignalServiceContent content)
} 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;
Expand Down

0 comments on commit 7642b7c

Please sign in to comment.