mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 20:18:34 +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();
|
return sender.isBlocked();
|
||||||
} else if (content.getTypingMessage().isPresent()) {
|
} else if (content.getTypingMessage().isPresent()) {
|
||||||
if (content.getTypingMessage().get().getGroupId().isPresent()) {
|
if (content.getTypingMessage().get().getGroupId().isPresent()) {
|
||||||
GroupId groupId = GroupId.push(content.getTypingMessage().get().getGroupId().get());
|
GroupId groupId = GroupId.push(content.getTypingMessage().get().getGroupId().get());
|
||||||
return Recipient.externalGroup(context, groupId).isBlocked();
|
Recipient groupRecipient = Recipient.externalGroup(context, groupId);
|
||||||
|
return groupRecipient.isBlocked() || !groupRecipient.isActiveGroup();
|
||||||
} else {
|
} else {
|
||||||
return sender.isBlocked();
|
return sender.isBlocked();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user