mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 23:08:33 +00:00
Fix issue with typing indicators in blocked groups.
This commit is contained in:
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…
x
Reference in New Issue
Block a user