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
bdfc80a7e7
commit
e1d4374ca5
@ -569,6 +569,8 @@ class ChatActivity :
|
|||||||
|
|
||||||
logConversationInfos("onResume")
|
logConversationInfos("onResume")
|
||||||
|
|
||||||
|
pullChatMessagesPending = false
|
||||||
|
|
||||||
setupWebsocket()
|
setupWebsocket()
|
||||||
webSocketInstance?.getSignalingMessageReceiver()?.addListener(localParticipantMessageListener)
|
webSocketInstance?.getSignalingMessageReceiver()?.addListener(localParticipantMessageListener)
|
||||||
webSocketInstance?.getSignalingMessageReceiver()?.addListener(conversationMessageListener)
|
webSocketInstance?.getSignalingMessageReceiver()?.addListener(conversationMessageListener)
|
||||||
|
Loading…
Reference in New Issue
Block a user