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

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-01-04 16:26:59 +01:00
parent e563230fb2
commit ba314c96ee
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7

View File

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