Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-03-22 11:19:54 +01:00
parent 53cc5d28c4
commit 68c1cd6d4d
No known key found for this signature in database
GPG key ID: CDE0BBD2738C4CC0
2 changed files with 5 additions and 8 deletions

View file

@ -39,8 +39,8 @@ android {
targetSdkVersion 28
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 132
versionName "8.0.5"
versionCode 133
versionName "8.0.6"
flavorDimensions "default"
renderscriptTargetApi 19

View file

@ -1015,6 +1015,9 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
if (isFromTheFuture) {
globalLastKnownFutureMessageId = header
} else {
if (globalLastKnownFutureMessageId == -1) {
globalLastKnownFutureMessageId = header
}
globalLastKnownPastMessageId = header
}
}
@ -1025,8 +1028,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
val chatOverall = response.body() as ChatOverall?
val chatMessageList = chatOverall?.ocs!!.data
val wasFirstMessageProcessing = isFirstMessagesProcessing
if (isFirstMessagesProcessing) {
cancelNotificationsForCurrentConversation()
@ -1061,10 +1062,6 @@ class ChatController(args: Bundle) : BaseController(args), MessagesListAdapter
}
if (wasFirstMessageProcessing && chatMessageList.size > 0) {
globalLastKnownFutureMessageId = chatMessageList[0].jsonMessageId
}
if (adapter != null) {
adapter?.addToEnd(chatMessageList, false)
}