mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-17 12:58:28 +00:00
Prevent conference related chat rooms to be added to conversations list
This commit is contained in:
parent
b055b53468
commit
b5743a7394
1 changed files with 8 additions and 0 deletions
|
|
@ -253,6 +253,14 @@ class ConversationsListViewModel
|
|||
return
|
||||
}
|
||||
|
||||
val conferenceInfo = chatRoom.conferenceInfo
|
||||
if (conferenceInfo != null) {
|
||||
Log.w(
|
||||
"$TAG Chat room with identifier [$identifier] was created but not displaying it because it is related to a conference"
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
val hideEmptyChatRooms = coreContext.core.config.getBool("misc", "hide_empty_chat_rooms", true)
|
||||
// Hide empty chat rooms only applies to 1-1 conversations
|
||||
if (hideEmptyChatRooms && !LinphoneUtils.isChatRoomAGroup(chatRoom) && chatRoom.lastMessageInHistory == null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue