[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
|
#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) {
|
for (NSDictionary* item in results) {
|
||||||
NSString* itemId = item[@"id"];
|
NSString* itemId = item[@"id"];
|
||||||
NSString* itemType = item[@"type"];
|
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 {
|
- (void)inviteSettled:(NSArray<NSDictionary *> *)failedInvitees {
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
// like it emits within the bounderies of a react-native module ony, it actually
|
// like it emits within the bounderies of a react-native module ony, it actually
|
||||||
// also emits through DeviceEventEmitter. (Of course, Android emits only through
|
// also emits through DeviceEventEmitter. (Of course, Android emits only through
|
||||||
// DeviceEventEmitter.)
|
// DeviceEventEmitter.)
|
||||||
static NSString * const InvitePerformQueryAction
|
static NSString * const InviteEmitterEvent
|
||||||
= @"org.jitsi.meet:features/invite#performQuery";
|
|
||||||
static NSString * const InvitePerformSubmitInviteAction
|
|
||||||
= @"org.jitsi.meet:features/invite#invite";
|
= @"org.jitsi.meet:features/invite#invite";
|
||||||
|
static NSString * const PerformQueryEmitterEvent
|
||||||
|
= @"org.jitsi.meet:features/invite#performQuery";
|
||||||
|
|
||||||
@implementation Invite
|
@implementation Invite
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ RCT_EXPORT_MODULE();
|
||||||
|
|
||||||
- (NSArray<NSString *> *)supportedEvents {
|
- (NSArray<NSString *> *)supportedEvents {
|
||||||
return @[
|
return @[
|
||||||
InvitePerformQueryAction,
|
InviteEmitterEvent,
|
||||||
InvitePerformSubmitInviteAction
|
PerformQueryEmitterEvent
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ RCT_EXPORT_METHOD(receivedResults:(NSString *)externalAPIScope
|
||||||
- (void) invite:(NSArray<NSDictionary *> * _Nonnull)invitees
|
- (void) invite:(NSArray<NSDictionary *> * _Nonnull)invitees
|
||||||
externalAPIScope:(NSString * _Nonnull)externalAPIScope
|
externalAPIScope:(NSString * _Nonnull)externalAPIScope
|
||||||
addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
|
addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
|
||||||
[self sendEventWithName:InvitePerformSubmitInviteAction
|
[self sendEventWithName:InviteEmitterEvent
|
||||||
body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
|
body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
|
||||||
@"externalAPIScope": externalAPIScope,
|
@"externalAPIScope": externalAPIScope,
|
||||||
@"invitees": invitees }];
|
@"invitees": invitees }];
|
||||||
|
@ -81,7 +81,7 @@ RCT_EXPORT_METHOD(receivedResults:(NSString *)externalAPIScope
|
||||||
- (void) performQuery:(NSString * _Nonnull)query
|
- (void) performQuery:(NSString * _Nonnull)query
|
||||||
externalAPIScope:(NSString * _Nonnull)externalAPIScope
|
externalAPIScope:(NSString * _Nonnull)externalAPIScope
|
||||||
addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
|
addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
|
||||||
[self sendEventWithName:InvitePerformQueryAction
|
[self sendEventWithName:PerformQueryEmitterEvent
|
||||||
body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
|
body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
|
||||||
@"externalAPIScope": externalAPIScope,
|
@"externalAPIScope": externalAPIScope,
|
||||||
@"query": query }];
|
@"query": query }];
|
||||||
|
|
|
@ -79,13 +79,13 @@ function _appWillMount({ dispatch, getState }, next, action) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: _SET_EMITTER_SUBSCRIPTIONS,
|
type: _SET_EMITTER_SUBSCRIPTIONS,
|
||||||
emitterSubscriptions: [
|
emitterSubscriptions: [
|
||||||
emitter.addListener(
|
|
||||||
'org.jitsi.meet:features/invite#performQuery',
|
|
||||||
_onPerformQuery,
|
|
||||||
context),
|
|
||||||
emitter.addListener(
|
emitter.addListener(
|
||||||
'org.jitsi.meet:features/invite#invite',
|
'org.jitsi.meet:features/invite#invite',
|
||||||
_onInvite,
|
_onInvite,
|
||||||
|
context),
|
||||||
|
emitter.addListener(
|
||||||
|
'org.jitsi.meet:features/invite#performQuery',
|
||||||
|
_onPerformQuery,
|
||||||
context)
|
context)
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue