Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[iOS] Fix issue with Invite RNModule being nil
Daniel Ornelasde725404ef18
diff --git a/ios/sdk/src/JitsiMeetView.m b/ios/sdk/src/JitsiMeetView.mindex 879496b7dd..ea75d4697b 100644--- a/ios/sdk/src/JitsiMeetView.m+++ b/ios/sdk/src/JitsiMeetView.m@@ -411,10 +411,9 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;externalAPIScope = [NSUUID UUID].UUIDString;[views setObject:self forKey:externalAPIScope];- Invite *inviteModule = [bridgeWrapper.bridge moduleForName:@"Invite"];_inviteController= [[JMInviteController alloc] initWithExternalAPIScope:externalAPIScope- andInviteModule:inviteModule];+ bridgeWrapper:bridgeWrapper];// Set a background color which is in accord with the JavaScript and Android// parts of the application and causes less perceived visual flicker thandiff --git a/ios/sdk/src/invite/InviteController+Private.h b/ios/sdk/src/invite/InviteController+Private.hindex 7c86df0bf5..8a8b9eac1e 100644--- a/ios/sdk/src/invite/InviteController+Private.h+++ b/ios/sdk/src/invite/InviteController+Private.h@@ -18,6 +18,7 @@#import "AddPeopleController.h"#import "Invite+Private.h"+#import "RCTBridgeWrapper.h"@interface JMInviteController ()@@ -25,10 +26,12 @@@property (nonatomic) NSString * _Nonnull externalAPIScope;-@property (nonatomic, nullable, weak) Invite *inviteModule;+@property (nonatomic, nullable, weak) RCTBridgeWrapper *bridgeWrapper;++@property (nonatomic, readonly) Invite * _Nullable inviteModule;- (instancetype _Nonnull)initWithExternalAPIScope:(NSString * _Nonnull)externalAPIScope- andInviteModule:(Invite * _Nonnull)inviteModule;+ bridgeWrapper:(RCTBridgeWrapper * _Nullable)bridgeWrapper;- (void)beginAddPeople;diff --git a/ios/sdk/src/invite/InviteController.m b/ios/sdk/src/invite/InviteController.mindex 177a558426..5a4923af2f 100644--- a/ios/sdk/src/invite/InviteController.m+++ b/ios/sdk/src/invite/InviteController.m@@ -28,11 +28,11 @@#pragma mark Constructor-(instancetype)initWithExternalAPIScope:(NSString * _Nonnull)externalAPIScope- andInviteModule:(Invite * _Nonnull)inviteModule {+ bridgeWrapper:(RCTBridgeWrapper * _Nullable)bridgeWrapper {self = [super init];if (self) {self.externalAPIScope = externalAPIScope;- self.inviteModule = inviteModule;+ self.bridgeWrapper = bridgeWrapper;}return self;@@ -40,6 +40,10 @@#pragma mark Public API+-(Invite * _Nullable)inviteModule {+ return [self.bridgeWrapper.bridge moduleForName:@"Invite"];+}+-(void)beginAddPeople {if (_delegate == nil) {return;