mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed issue when trying to add a participant to an existing group (meeting, conversation, etc...)
This commit is contained in:
parent
aad50669c4
commit
3734c8ca90
2 changed files with 7 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ class AddParticipantsFragment : GenericAddressPickerFragment() {
|
|||
viewModel.modelsList.observe(
|
||||
viewLifecycleOwner
|
||||
) {
|
||||
if (!participants.isNullOrEmpty()) {
|
||||
if (!participants.isNullOrEmpty() && viewModel.isSelectionEmpty()) {
|
||||
Log.i("$TAG Found participants in arguments and selection is currently empty, adding them")
|
||||
viewModel.addSelectedParticipants(participants)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ class AddParticipantsViewModel
|
|||
switchToMultipleSelectionMode()
|
||||
}
|
||||
|
||||
@UiThread
|
||||
fun isSelectionEmpty(): Boolean {
|
||||
return selection.value.orEmpty().isEmpty()
|
||||
}
|
||||
|
||||
@UiThread
|
||||
fun addSelectedParticipants(participants: Array<String>) {
|
||||
coreContext.postOnCoreThread { core ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue