Эх сурвалжийг харах

Avoid shadowed warning for xChatLastCommonRead

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 2 жил өмнө
parent
commit
b10558eee8

+ 3 - 3
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -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)
                             }
                         }
                     }