mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Avoid shadowed warning for xChatLastCommonRead
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
6efbbae823
commit
b10558eee8
@ -2321,16 +2321,16 @@ class ChatController(args: Bundle) :
|
|||||||
processMessagesNotFromTheFuture(chatMessageList)
|
processMessagesNotFromTheFuture(chatMessageList)
|
||||||
}
|
}
|
||||||
|
|
||||||
val xChatLastCommonRead = response.headers()["X-Chat-Last-Common-Read"]?.let {
|
val newXChatLastCommonRead = response.headers()["X-Chat-Last-Common-Read"]?.let {
|
||||||
Integer.parseInt(it)
|
Integer.parseInt(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
updateReadStatusOfAllMessages(xChatLastCommonRead)
|
updateReadStatusOfAllMessages(newXChatLastCommonRead)
|
||||||
adapter?.notifyDataSetChanged()
|
adapter?.notifyDataSetChanged()
|
||||||
|
|
||||||
if (isFirstMessagesProcessing || lookIntoFuture) {
|
if (isFirstMessagesProcessing || lookIntoFuture) {
|
||||||
Log.d(TAG, "recursive call to pullChatMessages")
|
Log.d(TAG, "recursive call to pullChatMessages")
|
||||||
pullChatMessages(true, true, xChatLastCommonRead)
|
pullChatMessages(true, true, newXChatLastCommonRead)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user