mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Do not send typing indicator when deleting from the end & send stopped typing indicator when compose completely empty.
This commit is contained in:
committed by
Cody Henthorne
parent
6a59974f89
commit
3bb366ee04
@@ -2,9 +2,9 @@ package org.thoughtcrime.securesms.components;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.thoughtcrime.securesms.ApplicationContext;
|
||||
import org.thoughtcrime.securesms.dependencies.ApplicationDependencies;
|
||||
import org.thoughtcrime.securesms.jobs.TypingSendJob;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
@@ -54,6 +54,10 @@ public class TypingStatusSender {
|
||||
onTypingStopped(threadId, false);
|
||||
}
|
||||
|
||||
public synchronized void onTypingStoppedWithNotify(long threadId) {
|
||||
onTypingStopped(threadId, true);
|
||||
}
|
||||
|
||||
private synchronized void onTypingStopped(long threadId, boolean notify) {
|
||||
TimerPair pair = Util.getOrDefault(selfTypingTimers, threadId, new TimerPair());
|
||||
selfTypingTimers.put(threadId, pair);
|
||||
|
||||
Reference in New Issue
Block a user