Browse Source

[iOS] Fixup style

master
Saúl Ibarra Corretgé 7 years ago
parent
commit
6c602accae

+ 5
- 2
ios/sdk/src/invite/AddPeopleController.m View File

55
 
55
 
56
 #pragma mark Internal API, used to call the delegate and report to the user
56
 #pragma mark Internal API, used to call the delegate and report to the user
57
 
57
 
58
-- (void)receivedResults:(NSArray<NSDictionary *> *)results forQuery:(NSString *)query {
58
+- (void)receivedResults:(NSArray<NSDictionary *> *)results
59
+               forQuery:(NSString *)query {
59
     for (NSDictionary* item in results) {
60
     for (NSDictionary* item in results) {
60
         NSString* itemId = item[@"id"];
61
         NSString* itemId = item[@"id"];
61
         NSString* itemType = item[@"type"];
62
         NSString* itemType = item[@"type"];
69
         }
70
         }
70
     }
71
     }
71
 
72
 
72
-    [self.delegate addPeopleController:self didReceiveResults:results forQuery:query];
73
+    [self.delegate addPeopleController:self
74
+                     didReceiveResults:results
75
+                              forQuery:query];
73
 }
76
 }
74
 
77
 
75
 - (void)inviteSettled:(NSArray<NSDictionary *> *)failedInvitees {
78
 - (void)inviteSettled:(NSArray<NSDictionary *> *)failedInvitees {

+ 7
- 7
ios/sdk/src/invite/Invite.m View File

24
 // like it emits within the bounderies of a react-native module ony, it actually
24
 // like it emits within the bounderies of a react-native module ony, it actually
25
 // also emits through DeviceEventEmitter. (Of course, Android emits only through
25
 // also emits through DeviceEventEmitter. (Of course, Android emits only through
26
 // DeviceEventEmitter.)
26
 // DeviceEventEmitter.)
27
-static NSString * const InvitePerformQueryAction
28
-    = @"org.jitsi.meet:features/invite#performQuery";
29
-static NSString * const InvitePerformSubmitInviteAction
27
+static NSString * const InviteEmitterEvent
30
     = @"org.jitsi.meet:features/invite#invite";
28
     = @"org.jitsi.meet:features/invite#invite";
29
+static NSString * const PerformQueryEmitterEvent
30
+    = @"org.jitsi.meet:features/invite#performQuery";
31
 
31
 
32
 @implementation Invite
32
 @implementation Invite
33
 
33
 
35
 
35
 
36
 - (NSArray<NSString *> *)supportedEvents {
36
 - (NSArray<NSString *> *)supportedEvents {
37
     return @[
37
     return @[
38
-        InvitePerformQueryAction,
39
-        InvitePerformSubmitInviteAction
38
+        InviteEmitterEvent,
39
+        PerformQueryEmitterEvent
40
     ];
40
     ];
41
 }
41
 }
42
 
42
 
72
 - (void)            invite:(NSArray<NSDictionary *> * _Nonnull)invitees
72
 - (void)            invite:(NSArray<NSDictionary *> * _Nonnull)invitees
73
           externalAPIScope:(NSString * _Nonnull)externalAPIScope
73
           externalAPIScope:(NSString * _Nonnull)externalAPIScope
74
   addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
74
   addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
75
-    [self sendEventWithName:InvitePerformSubmitInviteAction
75
+    [self sendEventWithName:InviteEmitterEvent
76
                        body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
76
                        body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
77
                                @"externalAPIScope": externalAPIScope,
77
                                @"externalAPIScope": externalAPIScope,
78
                                @"invitees": invitees }];
78
                                @"invitees": invitees }];
81
 - (void)      performQuery:(NSString * _Nonnull)query
81
 - (void)      performQuery:(NSString * _Nonnull)query
82
           externalAPIScope:(NSString * _Nonnull)externalAPIScope
82
           externalAPIScope:(NSString * _Nonnull)externalAPIScope
83
   addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
83
   addPeopleControllerScope:(NSString * _Nonnull) addPeopleControllerScope {
84
-    [self sendEventWithName:InvitePerformQueryAction
84
+    [self sendEventWithName:PerformQueryEmitterEvent
85
                        body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
85
                        body:@{ @"addPeopleControllerScope": addPeopleControllerScope,
86
                                @"externalAPIScope": externalAPIScope,
86
                                @"externalAPIScope": externalAPIScope,
87
                                @"query": query }];
87
                                @"query": query }];

+ 4
- 4
react/features/invite/middleware.native.js View File

79
     dispatch({
79
     dispatch({
80
         type: _SET_EMITTER_SUBSCRIPTIONS,
80
         type: _SET_EMITTER_SUBSCRIPTIONS,
81
         emitterSubscriptions: [
81
         emitterSubscriptions: [
82
-            emitter.addListener(
83
-                'org.jitsi.meet:features/invite#performQuery',
84
-                _onPerformQuery,
85
-                context),
86
             emitter.addListener(
82
             emitter.addListener(
87
                 'org.jitsi.meet:features/invite#invite',
83
                 'org.jitsi.meet:features/invite#invite',
88
                 _onInvite,
84
                 _onInvite,
85
+                context),
86
+            emitter.addListener(
87
+                'org.jitsi.meet:features/invite#performQuery',
88
+                _onPerformQuery,
89
                 context)
89
                 context)
90
         ]
90
         ]
91
     });
91
     });

Loading…
Cancel
Save