소스 검색

Do not use -1 as lastCommonRead parameter, but do not set it at all, if undefined

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 4 년 전
부모
커밋
ba314c96ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

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

@@ -933,7 +933,7 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
         }
     }
 
-    fun pullChatMessages(lookIntoFuture: Int, setReadMarker: Int = 1, xChatLastCommonRead: Int? = -1) {
+    fun pullChatMessages(lookIntoFuture: Int, setReadMarker: Int = 1, xChatLastCommonRead: Int? = null) {
         if (!inConversation) {
             return
         }