Change timeout for first future pull

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-09-09 14:00:37 +02:00
parent 8ed3d1404e
commit f686bf9057

View File

@ -992,7 +992,13 @@ public class ChatController extends BaseController implements MessagesListAdapte
fieldMap.put("includeLastKnown", 0);
if (lookIntoFuture > 0) {
int timeout = 30;
if (!lookingIntoFuture ) {
timeout = 0;
}
lookingIntoFuture = true;
fieldMap.put("timeout", timeout);
} else if (isFirstMessagesProcessing) {
globalLastKnownFutureMessageId = currentConversation.getLastReadMessage();
globalLastKnownPastMessageId = currentConversation.getLastReadMessage();