mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 13:59:48 +01:00
Merge pull request #3710 from nextcloud/bugfix/noid/fixReadMarker
use X-Chat-Last-Common-Read to fix read status
This commit is contained in:
commit
b1013e418d
@ -918,7 +918,11 @@ class ChatActivity :
|
|||||||
collapseSystemMessages()
|
collapseSystemMessages()
|
||||||
}
|
}
|
||||||
|
|
||||||
updateReadStatusOfAllMessages(chatMessageList[0].jsonMessageId)
|
val newXChatLastCommonRead = state.response.headers()["X-Chat-Last-Common-Read"]?.let {
|
||||||
|
Integer.parseInt(it)
|
||||||
|
}
|
||||||
|
|
||||||
|
updateReadStatusOfAllMessages(newXChatLastCommonRead)
|
||||||
|
|
||||||
processCallStartedMessages(chatMessageList)
|
processCallStartedMessages(chatMessageList)
|
||||||
|
|
||||||
@ -927,7 +931,7 @@ class ChatActivity :
|
|||||||
chatViewModel.refreshChatParams(
|
chatViewModel.refreshChatParams(
|
||||||
setupFieldsForPullChatMessages(
|
setupFieldsForPullChatMessages(
|
||||||
true,
|
true,
|
||||||
chatMessageList[0].jsonMessageId,
|
newXChatLastCommonRead,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user