forked from mirrors/linphone-iphone
Add audio_video_conference_factory_address condition to display voip conference button
This commit is contained in:
parent
63fa4f10dd
commit
75f841acc1
2 changed files with 11 additions and 7 deletions
|
|
@ -410,7 +410,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
_addressField.text = @"";
|
||||
}
|
||||
LinphoneAccount *defaultAccount = linphone_core_get_default_account(LC);
|
||||
if (!(defaultAccount && linphone_account_params_get_conference_factory_uri(linphone_account_get_params(defaultAccount)))){
|
||||
if (!(defaultAccount && linphone_account_params_get_audio_video_conference_factory_address(linphone_account_get_params(defaultAccount)))){
|
||||
[_addContactButton setImage:[UIImage imageNamed:@"contact_add_default"] forState:UIControlStateNormal];
|
||||
_addContactButton.enabled = ([[_addressField text] length] > 0);
|
||||
if ([_addressField.text length] == 0) {
|
||||
|
|
|
|||
|
|
@ -106,13 +106,17 @@
|
|||
}]];
|
||||
}
|
||||
|
||||
[_sideMenuEntries addObject:[[SideMenuEntry alloc] initWithTitle:VoipTexts.conference_scheduled
|
||||
image:[UIImage imageNamed:@"side_menu_voip_meeting_schedule"]
|
||||
tapBlock:^() {
|
||||
[PhoneMainView.instance
|
||||
changeCurrentView:ScheduledConferencesView.compositeViewDescription];
|
||||
LinphoneAccount *defaultAccount = linphone_core_get_default_account(LC);
|
||||
if (defaultAccount && linphone_account_params_get_audio_video_conference_factory_address(linphone_account_get_params(defaultAccount))){
|
||||
|
||||
[_sideMenuEntries addObject:[[SideMenuEntry alloc] initWithTitle:VoipTexts.conference_scheduled
|
||||
image:[UIImage imageNamed:@"side_menu_voip_meeting_schedule"]
|
||||
tapBlock:^() {
|
||||
[PhoneMainView.instance
|
||||
changeCurrentView:ScheduledConferencesView.compositeViewDescription];
|
||||
|
||||
}]];
|
||||
}]];
|
||||
}
|
||||
|
||||
[_sideMenuEntries addObject:[[SideMenuEntry alloc] initWithTitle:NSLocalizedString(@"About", nil)
|
||||
image:[UIImage imageNamed:@"menu_about.png"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue