Merge pull request #3710 from nextcloud/bugfix/noid/fixReadMarker

use X-Chat-Last-Common-Read to fix read status
This commit is contained in:
Marcel Hibbe 2024-03-19 13:18:45 +01:00 committed by GitHub
commit b1013e418d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -918,7 +918,11 @@ class ChatActivity :
collapseSystemMessages()
}
updateReadStatusOfAllMessages(chatMessageList[0].jsonMessageId)
val newXChatLastCommonRead = state.response.headers()["X-Chat-Last-Common-Read"]?.let {
Integer.parseInt(it)
}
updateReadStatusOfAllMessages(newXChatLastCommonRead)
processCallStartedMessages(chatMessageList)
@ -927,7 +931,7 @@ class ChatActivity :
chatViewModel.refreshChatParams(
setupFieldsForPullChatMessages(
true,
chatMessageList[0].jsonMessageId,
newXChatLastCommonRead,
true
)
)