mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-13 07:44:11 +01:00
Change timeout for first future pull
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
8ed3d1404e
commit
f686bf9057
@ -992,7 +992,13 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||||||
fieldMap.put("includeLastKnown", 0);
|
fieldMap.put("includeLastKnown", 0);
|
||||||
|
|
||||||
if (lookIntoFuture > 0) {
|
if (lookIntoFuture > 0) {
|
||||||
|
int timeout = 30;
|
||||||
|
if (!lookingIntoFuture ) {
|
||||||
|
timeout = 0;
|
||||||
|
}
|
||||||
|
|
||||||
lookingIntoFuture = true;
|
lookingIntoFuture = true;
|
||||||
|
fieldMap.put("timeout", timeout);
|
||||||
} else if (isFirstMessagesProcessing) {
|
} else if (isFirstMessagesProcessing) {
|
||||||
globalLastKnownFutureMessageId = currentConversation.getLastReadMessage();
|
globalLastKnownFutureMessageId = currentConversation.getLastReadMessage();
|
||||||
globalLastKnownPastMessageId = currentConversation.getLastReadMessage();
|
globalLastKnownPastMessageId = currentConversation.getLastReadMessage();
|
||||||
|
Loading…
Reference in New Issue
Block a user