mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Fix timeout stuff
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
68c1cd6d4d
commit
84cb7cc45a
@ -919,13 +919,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
|
|||||||
val fieldMap = HashMap<String, Int>()
|
val fieldMap = HashMap<String, Int>()
|
||||||
fieldMap["includeLastKnown"] = 0
|
fieldMap["includeLastKnown"] = 0
|
||||||
|
|
||||||
var timeout = 30
|
|
||||||
if (!lookingIntoFuture) {
|
|
||||||
timeout = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
fieldMap["timeout"] = timeout
|
|
||||||
|
|
||||||
if (lookIntoFuture > 0) {
|
if (lookIntoFuture > 0) {
|
||||||
lookingIntoFuture = true
|
lookingIntoFuture = true
|
||||||
} else if (isFirstMessagesProcessing) {
|
} 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["lookIntoFuture"] = lookIntoFuture
|
||||||
fieldMap["limit"] = 100
|
fieldMap["limit"] = 100
|
||||||
fieldMap["setReadMarker"] = 1
|
fieldMap["setReadMarker"] = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user