mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Add bundle_mode_preference toggle in account settings
This commit is contained in:
parent
5523ddf0f1
commit
2dac2cef6b
2 changed files with 21 additions and 4 deletions
|
|
@ -155,7 +155,8 @@
|
|||
// default values
|
||||
{
|
||||
[self setBool:NO forKey:@"account_pushnotification_preference"];
|
||||
[self setBool:YES forKey:@"account_push_presence_preference"];
|
||||
[self setBool:YES forKey:@"account_push_presence_preference"];
|
||||
[self setBool:NO forKey:@"account_bundle_mode_preference"];
|
||||
[self setObject:@"" forKey:@"account_mandatory_username_preference"];
|
||||
[self setObject:@"" forKey:@"account_mandatory_domain_preference"];
|
||||
[self setCString:"" forKey:@"account_display_name_preference"];
|
||||
|
|
@ -185,10 +186,13 @@
|
|||
{
|
||||
BOOL pushEnabled = linphone_account_params_get_push_notification_allowed(accountParams);
|
||||
[self setBool:pushEnabled forKey:@"account_pushnotification_preference"];
|
||||
|
||||
|
||||
BOOL pushPresenceEnabled = linphone_account_params_get_publish_enabled(accountParams);
|
||||
[self setBool:pushPresenceEnabled forKey:@"account_push_presence_preference"];
|
||||
|
||||
[self setBool:pushPresenceEnabled forKey:@"account_push_presence_preference"];
|
||||
|
||||
BOOL bundleModeEnabled = linphone_account_params_rtp_bundle_enabled(accountParams);
|
||||
[self setBool:bundleModeEnabled forKey:@"account_bundle_mode_preference"];
|
||||
|
||||
const LinphoneAddress *identity_addr = linphone_account_params_get_identity_address(accountParams);
|
||||
const char *server_addr = linphone_account_params_get_server_addr(accountParams);
|
||||
LinphoneAddress *proxy_addr = linphone_core_interpret_url_2(LC, server_addr, false);
|
||||
|
|
@ -619,6 +623,7 @@
|
|||
int expire = [self integerForKey:@"account_expire_preference"];
|
||||
BOOL pushnotification = [self boolForKey:@"account_pushnotification_preference"];
|
||||
BOOL publishPrensence = [self boolForKey:@"account_push_presence_preference"];
|
||||
BOOL bundlemode = [self boolForKey:@"account_bundle_mode_preference"];
|
||||
NSString *prefix = [self stringForKey:@"account_prefix_preference"];
|
||||
BOOL use_prefix = [self boolForKey:@"apply_international_prefix_for_calls_and_chats"];
|
||||
NSString *proxyAddress = [self stringForKey:@"account_proxy_preference"];
|
||||
|
|
@ -698,6 +703,8 @@
|
|||
|
||||
// use empty string "" instead of NULL to avoid being overwritten by default proxy config values
|
||||
linphone_account_params_set_push_notification_allowed(newAccountParams, pushnotification);
|
||||
linphone_account_params_enable_rtp_bundle(newAccountParams, bundlemode);
|
||||
linphone_account_params_set_push_notification_allowed(newAccountParams, pushnotification);
|
||||
linphone_account_params_set_remote_push_notification_allowed(newAccountParams, pushnotification);
|
||||
|
||||
linphone_account_params_set_publish_enabled(newAccountParams, publishPrensence);
|
||||
|
|
|
|||
|
|
@ -298,6 +298,16 @@
|
|||
<key>Type</key>
|
||||
<string>PSToggleSwitchSpecifier</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Title</key>
|
||||
<string>Bundle Mode</string>
|
||||
<key>Key</key>
|
||||
<string>account_bundle_mode_preference</string>
|
||||
<key>Type</key>
|
||||
<string>PSToggleSwitchSpecifier</string>
|
||||
<key>DefaultValue</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Key</key>
|
||||
<string>account_mandatory_change_password</string>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue