mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Prevent 1-1 events for conference joined/left + temporary read only state
This commit is contained in:
parent
bfa7773088
commit
b2c5b9dd28
2 changed files with 8 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ class ConversationModel
|
|||
@WorkerThread
|
||||
override fun onConferenceLeft(chatRoom: ChatRoom, eventLog: EventLog) {
|
||||
Log.w("TAG Conversation has been left")
|
||||
isReadOnly.postValue(true)
|
||||
isReadOnly.postValue(chatRoom.isReadOnly)
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
|
|
|
|||
|
|
@ -153,7 +153,9 @@ class ConversationViewModel
|
|||
@WorkerThread
|
||||
override fun onConferenceJoined(chatRoom: ChatRoom, eventLog: EventLog) {
|
||||
Log.i("$TAG Conversation was joined")
|
||||
addEvents(arrayOf(eventLog))
|
||||
if (LinphoneUtils.isChatRoomAGroup(chatRoom)) {
|
||||
addEvents(arrayOf(eventLog))
|
||||
}
|
||||
computeConversationInfo()
|
||||
|
||||
val messageToForward = pendingForwardMessage
|
||||
|
|
@ -167,8 +169,10 @@ class ConversationViewModel
|
|||
@WorkerThread
|
||||
override fun onConferenceLeft(chatRoom: ChatRoom, eventLog: EventLog) {
|
||||
Log.w("$TAG Conversation was left")
|
||||
addEvents(arrayOf(eventLog))
|
||||
isReadOnly.postValue(true)
|
||||
if (LinphoneUtils.isChatRoomAGroup(chatRoom)) {
|
||||
addEvents(arrayOf(eventLog))
|
||||
}
|
||||
isReadOnly.postValue(chatRoom.isReadOnly)
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue