fix no callkit error

This commit is contained in:
Danmei Chen 2019-04-04 10:58:52 +02:00
parent f5b7ebf56e
commit b8051bdd99
2 changed files with 2 additions and 2 deletions

View file

@ -622,7 +622,7 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max) {
if (call && (linphone_core_get_calls_nb(LC) < 2)) {
if ([LinphoneManager.instance lpConfigBoolForKey:@"pref_accept_early_media"]) {
if ([LinphoneManager.instance lpConfigBoolForKey:@"accept_early_media" inSection:@"app"] && [LinphoneManager.instance lpConfigBoolForKey:@"pref_accept_early_media"]) {
[PhoneMainView.instance displayIncomingCall:call];
} else {
#if !TARGET_IPHONE_SIMULATOR

View file

@ -90,7 +90,7 @@
</dict>
<dict>
<key>DefaultValue</key>
<true/>
<false/>
<key>Key</key>
<string>pref_accept_early_media_preference</string>
<key>Title</key>