forked from mirrors/linphone-iphone
fix issue with time of remote notifications
This commit is contained in:
parent
0caa3e9461
commit
29857c38c3
1 changed files with 6 additions and 1 deletions
|
|
@ -733,7 +733,12 @@ static LinphoneCoreVTable linphonec_vtable = {
|
|||
}
|
||||
|
||||
- (BOOL)shouldAutoAcceptCall{
|
||||
return lastRemoteNotificationTime!=0 && lastRemoteNotificationTime-time(NULL)<10;
|
||||
if (lastRemoteNotificationTime!=0){
|
||||
if ((time(NULL)-lastRemoteNotificationTime)<15)
|
||||
return TRUE;
|
||||
lastRemoteNotificationTime=0;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
- (BOOL)resignActive {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue