[iOS] Fixup style
This commit is contained in:
parent
17ae89a56c
commit
6c602accae
|
@ -55,7 +55,8 @@
|
|||
|
||||
#pragma mark Internal API, used to call the delegate and report to the user
|
||||
|
||||
- (void)receivedResults:(NSArray<NSDictionary *> *)results forQuery:(NSString *)query {
|
||||
- (void)receivedResults:(NSArray<NSDictionary *> *)results
|
||||
forQuery:(NSString *)query {
|
||||
for (NSDictionary* item in results) {
|
||||
NSString* itemId = item[@"id"];
|
||||
NSString* itemType = item[@"type"];
|
||||
|
@ -69,7 +70,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
[self.delegate addPeopleController:self didReceiveResults:results forQuery:query];
|
||||
[self.delegate addPeopleController:self
|
||||
didReceiveResults:results
|
||||
forQuery:query];
|
||||
}
|
||||
|
||||
- (void)inviteSettled:(NSArray<NSDictionary *> *)failedInvitees {
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
// like it emits within the bounderies of a react-native module ony, it actually
|
||||
// also emits through DeviceEventEmitter. (Of course, Android emits only through
|
||||
// DeviceEventEmitter.)
|
||||
static NSString * const InvitePerformQueryAction
|
||||
= @"org.jitsi.meet:features/invite#performQuery";
|
||||
static NSString * const InvitePerformSubmitInviteAction
|
||||
static NSString * const InviteEmitterEvent
|
||||
= @"org.jitsi.meet:features/invite#invite";
|
||||
static NSString * const PerformQueryEmitterEvent
|
||||
= @"org.jitsi.meet:features/invite#performQuery";
|
||||
|
||||
@implementation Invite
|
||||
|
||||
|
@ -35,8 +35,8 @@ RCT_EXPORT_MODULE();
|
|||
|
||||
- (NSArray<NSString *> *)supportedEvents {
|
||||
return @[
|
||||
InvitePerformQueryAction,
|
||||
InvitePerformSubmitInviteAction
|
||||
InviteEmitterEvent,
|
||||
PerformQueryEmitterEvent
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ RCT_EXPORT_METHOD(receivedResults:(NSString *)externalAPIScope
|
|||
- (void) invite:(NSArray<NSDictionary *> * _Nonnull)invitees
|
||||
externalAPIScope:(NSString * _Nonnull)externalAPIScope
|
||||
addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
|
||||
[self sendEventWithName:InvitePerformSubmitInviteAction
|
||||
[self sendEventWithName:InviteEmitterEvent
|
||||
body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
|
||||
@"externalAPIScope": externalAPIScope,
|
||||
@"invitees": invitees }];
|
||||
|
@ -81,7 +81,7 @@ RCT_EXPORT_METHOD(receivedResults:(NSString *)externalAPIScope
|
|||
- (void) performQuery:(NSString * _Nonnull)query
|
||||
externalAPIScope:(NSString * _Nonnull)externalAPIScope
|
||||
addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
|
||||
[self sendEventWithName:InvitePerformQueryAction
|
||||
[self sendEventWithName:PerformQueryEmitterEvent
|
||||
body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
|
||||
@"externalAPIScope": externalAPIScope,
|
||||
@"query": query }];
|
||||
|
|
|
@ -79,13 +79,13 @@ function _appWillMount({ dispatch, getState }, next, action) {
|
|||
dispatch({
|
||||
type: _SET_EMITTER_SUBSCRIPTIONS,
|
||||
emitterSubscriptions: [
|
||||
emitter.addListener(
|
||||
'org.jitsi.meet:features/invite#performQuery',
|
||||
_onPerformQuery,
|
||||
context),
|
||||
emitter.addListener(
|
||||
'org.jitsi.meet:features/invite#invite',
|
||||
_onInvite,
|
||||
context),
|
||||
emitter.addListener(
|
||||
'org.jitsi.meet:features/invite#performQuery',
|
||||
_onPerformQuery,
|
||||
context)
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue