mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Display the "user is now admin" popup in the participant list only
This commit is contained in:
parent
f25211a9f1
commit
3bd7a7f19c
4 changed files with 11 additions and 8 deletions
|
|
@ -108,7 +108,9 @@ class ConferenceViewModel {
|
|||
self.updateParticipantsList(conference)
|
||||
if let participantData = self.conferenceParticipants.value?.filter ({$0.participant.address!.weakEqual(address2: participant.address!)}).first {
|
||||
self.participantAdminStatusChangedEvent.value = participantData
|
||||
self.notifyAdminStatusChanged(participantData: participantData)
|
||||
if(ControlsViewModel.shared.goToConferenceParticipantsListEvent.value!){
|
||||
self.notifyAdminStatusChanged(participantData: participantData)
|
||||
}
|
||||
} else {
|
||||
Log.w("[Conference] Failed to find participant [\(participant.address!.asStringUriOnly())] in conferenceParticipants list")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,10 +103,12 @@ import linphonesw
|
|||
}
|
||||
|
||||
// Conference Participants List
|
||||
ControlsViewModel.shared.goToConferenceParticipantsListEvent.observe { (_) in
|
||||
self.participantsListView = ParticipantsListView()
|
||||
self.view.addSubview(self.participantsListView!)
|
||||
self.participantsListView?.matchParentDimmensions().done()
|
||||
ControlsViewModel.shared.goToConferenceParticipantsListEvent.observe { goToConferenceParticipantsList in
|
||||
if goToConferenceParticipantsList! {
|
||||
self.participantsListView = ParticipantsListView()
|
||||
self.view.addSubview(self.participantsListView!)
|
||||
self.participantsListView?.matchParentDimmensions().done()
|
||||
}
|
||||
}
|
||||
|
||||
// Conference mode selection
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ class DismissableView: UIView {
|
|||
|
||||
dismiss = CallControlButton(imageInset:dismiss_icon_inset,buttonTheme: VoipTheme.voip_cancel, onClickAction: {
|
||||
self.removeFromSuperview()
|
||||
ControlsViewModel.shared.goToConferenceParticipantsListEvent.value = false
|
||||
})
|
||||
headerView.addSubview(dismiss!)
|
||||
dismiss?.alignParentRight(withMargin: dismiss_right_margin).centerY().done()
|
||||
|
|
@ -56,11 +57,9 @@ class DismissableView: UIView {
|
|||
UIDeviceBridge.displayModeSwitched.readCurrentAndObserve { _ in
|
||||
self.headerView.backgroundColor = VoipTheme.voipToolbarBackgroundColor.get()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ class VoipExtraButtonsView: UIStackView {
|
|||
transfer.accessibilityIdentifier = "active_call_extra_buttons_transfer"
|
||||
|
||||
let participants = VoipExtraButton(text: VoipTexts.call_action_participants_list, buttonTheme: VoipTheme.call_action("voip_call_participants"),onClickAction: {
|
||||
ControlsViewModel.shared.goToConferenceParticipantsListEvent.notifyAllObservers(with: true)
|
||||
ControlsViewModel.shared.goToConferenceParticipantsListEvent.value = true
|
||||
})
|
||||
row2.addArrangedSubview(participants)
|
||||
participants.accessibilityIdentifier = "active_call_extra_buttons_participants"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue