mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Display a message when attempting to launch cancelled conference from history
This commit is contained in:
parent
3c453119b3
commit
cd56030c41
2 changed files with 18 additions and 1 deletions
|
|
@ -268,8 +268,10 @@
|
|||
} else {
|
||||
if (linphone_call_log_was_conference(callLog)) {
|
||||
LinphoneConferenceInfo *confInfo = linphone_call_log_get_conference_info(callLog);
|
||||
if (linphone_conference_info_get_state(confInfo) == LinphoneConferenceInfoStateCancelled)
|
||||
if (linphone_conference_info_get_state(confInfo) == LinphoneConferenceInfoStateCancelled) {
|
||||
[ConferenceViewModelBridge showCancelledMeetingWithCConferenceInfo:confInfo];
|
||||
return;
|
||||
}
|
||||
ConferenceWaitingRoomFragment *view = VIEW(ConferenceWaitingRoomFragment);
|
||||
[view setDetailsWithSubject:[NSString stringWithUTF8String:linphone_conference_info_get_subject(confInfo)] url:[NSString stringWithUTF8String:linphone_address_as_string(linphone_conference_info_get_uri(confInfo))]];
|
||||
[PhoneMainView.instance changeCurrentView:ConferenceWaitingRoomFragment.compositeViewDescription];
|
||||
|
|
|
|||
|
|
@ -483,6 +483,21 @@ class ConferenceViewModel {
|
|||
ConferenceViewModel.shared.conferenceScheduler?.info = conferenceInfo // Will trigger the conference creation automatically
|
||||
}
|
||||
|
||||
@objc static func showCancelledMeeting(cConferenceInfo: OpaquePointer) {
|
||||
let core = Core.get()
|
||||
var message = VoipTexts.conference_scheduled_cancelled_by_organizer
|
||||
let conferenceInfo = ConferenceInfo.getSwiftObject(cObject: cConferenceInfo)
|
||||
if let organizerAddress = conferenceInfo.organizer {
|
||||
let localAccount = Core.get().accountList.filter { account in
|
||||
account.params?.identityAddress != nil && organizerAddress.weakEqual(address2: account.params!.identityAddress!)
|
||||
}.first
|
||||
if (localAccount != nil) {
|
||||
message = VoipTexts.conference_scheduled_cancelled_by_me
|
||||
}
|
||||
}
|
||||
VoipDialog.toast(message: message)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue