mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
fix to refresh chat after conversation screen was in background.
without this fix, it could happen that pullChatMessagesPending remains true after the conversation screen was in background. As a result the check if (pullChatMessagesPending) { Log.d(TAG, "pullChatMessages - pullChatMessagesPending is true, exiting") return } in pullChatMessages() always returns without to pull chat messages (so there was even no long-polling anymore). Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
bdfc80a7e7
commit
e1d4374ca5
@ -569,6 +569,8 @@ class ChatActivity :
|
||||
|
||||
logConversationInfos("onResume")
|
||||
|
||||
pullChatMessagesPending = false
|
||||
|
||||
setupWebsocket()
|
||||
webSocketInstance?.getSignalingMessageReceiver()?.addListener(localParticipantMessageListener)
|
||||
webSocketInstance?.getSignalingMessageReceiver()?.addListener(conversationMessageListener)
|
||||
|
Loading…
Reference in New Issue
Block a user