mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 22:45:41 +03:00
Fix timeout stuff
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
68c1cd6d4d
commit
84cb7cc45a
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue