From 9871580e6d3f0ef4631de9222c3dcb6aec4b3c14 Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Wed, 26 Jul 2017 14:42:23 -0500 Subject: [PATCH] [iOS] Completeness (maybe) --- ios/sdk/src/JitsiMeetView.m | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ios/sdk/src/JitsiMeetView.m b/ios/sdk/src/JitsiMeetView.m index eed8e1681..bccf089ed 100644 --- a/ios/sdk/src/JitsiMeetView.m +++ b/ios/sdk/src/JitsiMeetView.m @@ -156,6 +156,15 @@ static NSMapTable *views; #pragma mark Initializers +- (instancetype)init { + self = [super init]; + if (self) { + [self initWithXXX]; + } + + return self; +} + - (instancetype)initWithCoder:(NSCoder *)coder { self = [super initWithCoder:coder]; if (self) { @@ -264,8 +273,10 @@ static NSMapTable *views; }); // Hook this JitsiMeetView into ExternalAPI. - externalAPIScope = [NSUUID UUID].UUIDString; - [views setObject:self forKey:externalAPIScope]; + if (!externalAPIScope) { + externalAPIScope = [NSUUID UUID].UUIDString; + [views setObject:self forKey:externalAPIScope]; + } // Set a background color which is in accord with the JavaScript and // Android parts of the application and causes less perceived visual