mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Improved chat room lookup while in conference
This commit is contained in:
parent
dfd62b06f8
commit
cd8587ae41
1 changed files with 2 additions and 8 deletions
|
|
@ -1371,14 +1371,8 @@ class CurrentCallViewModel
|
|||
val remoteAddress = call.remoteAddress
|
||||
|
||||
val existingConversation = if (call.conference != null) {
|
||||
Log.i("$TAG Looking for conversation with local address [${localAddress.asStringUriOnly()}] and peer address [${remoteAddress.asStringUriOnly()}]")
|
||||
val params: ConferenceParams? = null // Don't need specific params, remote address should be enough in that scenario
|
||||
call.core.searchChatRoom(
|
||||
params,
|
||||
localAddress,
|
||||
remoteAddress,
|
||||
arrayOf()
|
||||
)
|
||||
Log.i("$TAG We're in [${remoteAddress.asStringUriOnly()}] conference, using it as chat room if possible")
|
||||
call.conference?.chatRoom
|
||||
} else {
|
||||
val params = getChatRoomParams(call)
|
||||
val participants = arrayOf(remoteAddress)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue