Pārlūkot izejas kodu

[iOS] Fixup style

master
Saúl Ibarra Corretgé 7 gadus atpakaļ
vecāks
revīzija
6c602accae

+ 5
- 2
ios/sdk/src/invite/AddPeopleController.m Parādīt failu

@@ -55,7 +55,8 @@
55 55
 
56 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 60
     for (NSDictionary* item in results) {
60 61
         NSString* itemId = item[@"id"];
61 62
         NSString* itemType = item[@"type"];
@@ -69,7 +70,9 @@
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 78
 - (void)inviteSettled:(NSArray<NSDictionary *> *)failedInvitees {

+ 7
- 7
ios/sdk/src/invite/Invite.m Parādīt failu

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

+ 4
- 4
react/features/invite/middleware.native.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt