fix crash accept video when call is already ended

This commit is contained in:
Danmei Chen 2021-02-22 14:12:35 +01:00
parent 629397d5f6
commit 007bea2eaf

View file

@ -688,6 +688,7 @@
[PhoneMainView.instance changeCurrentView:ChatsListView.compositeViewDescription];
}
} else if ([response.notification.request.content.categoryIdentifier isEqual:@"video_request"]) {
if (!call) return;
[PhoneMainView.instance changeCurrentView:CallView.compositeViewDescription];
NSTimer *videoDismissTimer = nil;
UIConfirmationDialog *sheet = [UIConfirmationDialog ShowWithMessage:response.notification.request.content.body