mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
fix: don't send typing indicator in unapproved conversation
This commit is contained in:
parent
8d32b02c16
commit
5ace67fd36
@ -80,7 +80,7 @@ public class TypingStatusSender {
|
||||
ThreadDatabase threadDatabase = DatabaseComponent.get(context).threadDatabase();
|
||||
Recipient recipient = threadDatabase.getRecipientForThreadId(threadId);
|
||||
if (recipient == null) { return; }
|
||||
if (!SessionMetaProtocol.shouldSendTypingIndicator(recipient.getAddress())) { return; }
|
||||
if (!SessionMetaProtocol.shouldSendTypingIndicator(recipient)) { return; }
|
||||
TypingIndicator typingIndicator;
|
||||
if (typingStarted) {
|
||||
typingIndicator = new TypingIndicator(TypingIndicator.Kind.STARTED);
|
||||
|
@ -53,7 +53,7 @@ object SessionMetaProtocol {
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun shouldSendTypingIndicator(address: Address): Boolean {
|
||||
return !address.isGroup
|
||||
fun shouldSendTypingIndicator(recipient: Recipient): Boolean {
|
||||
return !recipient.isGroupRecipient && recipient.isApproved
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user