Fix timeout stuff

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-03-22 19:26:16 +01:00
parent 68c1cd6d4d
commit 84cb7cc45a
No known key found for this signature in database
GPG key ID: CDE0BBD2738C4CC0

View file

@ -919,13 +919,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
val fieldMap = HashMap<String, Int>()
fieldMap["includeLastKnown"] = 0
var timeout = 30
if (!lookingIntoFuture) {
timeout = 0;
}
fieldMap["timeout"] = timeout
if (lookIntoFuture > 0) {
lookingIntoFuture = true
} else if (isFirstMessagesProcessing) {
@ -936,6 +929,13 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
}
}
var timeout = 30
if (!lookingIntoFuture) {
timeout = 0;
}
fieldMap["timeout"] = timeout
fieldMap["lookIntoFuture"] = lookIntoFuture
fieldMap["limit"] = 100
fieldMap["setReadMarker"] = 1