Avoid shadowed warning for xChatLastCommonRead

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-03-09 14:05:54 +01:00
parent 6efbbae823
commit b10558eee8
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -2321,16 +2321,16 @@ class ChatController(args: Bundle) :
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)
}
updateReadStatusOfAllMessages(xChatLastCommonRead)
updateReadStatusOfAllMessages(newXChatLastCommonRead)
adapter?.notifyDataSetChanged()
if (isFirstMessagesProcessing || lookIntoFuture) {
Log.d(TAG, "recursive call to pullChatMessages")
pullChatMessages(true, true, xChatLastCommonRead)
pullChatMessages(true, true, newXChatLastCommonRead)
}
}
}