mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add additional group terminate checks.
This commit is contained in:
@@ -101,6 +101,19 @@ public class TypingStatusRepository {
|
||||
return threadsNotifier;
|
||||
}
|
||||
|
||||
public synchronized void stopAllTypingForThread(long threadId) {
|
||||
Set<Typist> typists = typistMap.remove(threadId);
|
||||
if (typists != null) {
|
||||
for (Typist typist : typists) {
|
||||
Runnable timer = timers.remove(typist);
|
||||
if (timer != null) {
|
||||
ThreadUtil.cancelRunnableOnMain(timer);
|
||||
}
|
||||
}
|
||||
notifyThread(threadId, Collections.emptySet(), false);
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void clear() {
|
||||
TypingState empty = new TypingState(Collections.emptyList(), false);
|
||||
for (MutableLiveData<TypingState> notifier : notifiers.values()) {
|
||||
|
||||
Reference in New Issue
Block a user