mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +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
359d9fd592
commit
18d4d42e8f
@ -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