mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 20:38:33 +00:00
Do not show typing indicators for inactive groups.
This commit is contained in:
parent
a59e214317
commit
2db2b068c4
@ -1778,8 +1778,9 @@ public final class PushProcessMessageJob extends BaseJob {
|
||||
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user