mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-20 13:08:07 +00:00
Fixed total unread message count if deleted chat room contained unread messages
This commit is contained in:
parent
6121040bda
commit
28998d4463
1 changed files with 11 additions and 0 deletions
|
|
@ -113,6 +113,17 @@ open class AbstractMainViewModel
|
|||
}
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
override fun onChatRoomStateChanged(
|
||||
core: Core,
|
||||
chatRoom: ChatRoom,
|
||||
state: ChatRoom.State?
|
||||
) {
|
||||
if (state == ChatRoom.State.Deleted) {
|
||||
computeUnreadMessagesCount()
|
||||
}
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
override fun onMessagesReceived(
|
||||
core: Core,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue