mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Mark chat room as read when sending a new message to update getFirstUnreadMessagePosition() in conversation adapter
This commit is contained in:
parent
ac7e19144d
commit
61c85128e8
1 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ class ConversationViewModel @UiThread constructor() : ViewModel() {
|
|||
val message = eventLog.chatMessage
|
||||
Log.i("$TAG Message [$message] is being sent")
|
||||
|
||||
// Prevents auto scroll to go to latest received message
|
||||
chatRoom.markAsRead()
|
||||
|
||||
val list = arrayListOf<EventLogModel>()
|
||||
list.addAll(events.value.orEmpty())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue