Check that there is a roomToken in personHandle.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2020-12-08 21:56:56 +01:00
Родитель 3a077595a9
Коммит 7d95bd2e5d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,9 @@
if (audioCallIntent || videoCallIntent) {
INPerson *person = [[(INStartAudioCallIntent*)userActivity.interaction.intent contacts] firstObject];
NSString *roomToken = person.personHandle.value;
[[NCUserInterfaceController sharedInstance] presentCallKitCallInRoom:roomToken withVideoEnabled:videoCallIntent];
if (roomToken) {
[[NCUserInterfaceController sharedInstance] presentCallKitCallInRoom:roomToken withVideoEnabled:videoCallIntent];
}
}
return YES;
}