fix: clear typing users on reconnect

if they are no longer typing by the time we reconnected they will show as typing indefinitely

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2025-04-25 21:59:03 +02:00
parent a8ce409b54
commit 47b64bdf39
1 changed files with 1 additions and 0 deletions

View File

@ -694,6 +694,7 @@ class ChannelScreenViewModel @Inject constructor(
is RealtimeSocketFrames.Reconnected -> {
Log.d("ChannelScreen", "Reconnected to WS.")
loadMessages(50, ignoreExisting = true)
typingUsers.clear()
listenToWsEvents()
}
}