mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-21 05:28:08 +00:00
Fixed unread message count not updated in chat room list cell when a new message was received
This commit is contained in:
parent
c2eccd23a8
commit
fb05cf6280
1 changed files with 2 additions and 1 deletions
|
|
@ -94,6 +94,7 @@ class ConversationModel @WorkerThread constructor(val chatRoom: ChatRoom) {
|
||||||
override fun onMessagesReceived(chatRoom: ChatRoom, chatMessages: Array<out ChatMessage>) {
|
override fun onMessagesReceived(chatRoom: ChatRoom, chatMessages: Array<out ChatMessage>) {
|
||||||
updateLastMessage()
|
updateLastMessage()
|
||||||
updateLastUpdatedTime()
|
updateLastUpdatedTime()
|
||||||
|
unreadMessageCount.postValue(chatRoom.unreadMessagesCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
|
|
@ -115,7 +116,7 @@ class ConversationModel @WorkerThread constructor(val chatRoom: ChatRoom) {
|
||||||
|
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
override fun onEphemeralEvent(chatRoom: ChatRoom, eventLog: EventLog) {
|
override fun onEphemeralEvent(chatRoom: ChatRoom, eventLog: EventLog) {
|
||||||
Log.i("$TAG Ephemeral event received [${eventLog.type}]")
|
Log.i("$TAG Ephemeral event [${eventLog.type}]")
|
||||||
isEphemeral.postValue(chatRoom.isEphemeralEnabled)
|
isEphemeral.postValue(chatRoom.isEphemeralEnabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue