mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 22:45:41 +03:00
parent
53cc5d28c4
commit
68c1cd6d4d
2 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue