mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Fix a crash in processing messages
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
43f5f16ab2
commit
f97b8c1cdb
@ -494,7 +494,11 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||||||
adapter.addToStart(chatMessageList.get(i), shouldScroll);
|
adapter.addToStart(chatMessageList.get(i), shouldScroll);
|
||||||
}
|
}
|
||||||
|
|
||||||
globalLastKnownFutureMessageId = Integer.parseInt(response.headers().get("X-Chat-Last-Given"));
|
String xChatLastGivenHeader;
|
||||||
|
if (response.headers().size() > 0 && !TextUtils.isEmpty((xChatLastGivenHeader = response.headers().get
|
||||||
|
("X-Chat-Last-Given")))) {
|
||||||
|
globalLastKnownFutureMessageId = Integer.parseInt(xChatLastGivenHeader);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldForceFuture) {
|
if (shouldForceFuture) {
|
||||||
|
Loading…
Reference in New Issue
Block a user