@@ -112,7 +112,7 @@ -(void)initNotifications {
112112 name: kJJMessageReceiveMessage
113113 object: nil ];
114114 [defaultCenter addObserver: self
115- selector: @selector (didReceiveJMessageChatroomMessage : )
115+ selector: @selector (didReceiveJMessageChatRoomMessage : )
116116 name: kJJMessageReceiveChatroomMessage
117117 object: nil ];
118118
@@ -451,8 +451,8 @@ - (void)didReceiveJMessageMessage:(NSNotification *)notification {
451451 [self .commandDelegate sendPluginResult: result callbackId: self .callBack.callbackId];
452452}
453453
454- - (void )didReceiveJMessageChatroomMessage : (NSNotification *)notification {
455- CDVPluginResult *result = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsDictionary: @{@" eventName" : @" receiveChatroomMessage " , @" value" : notification.object }];
454+ - (void )didReceiveJMessageChatRoomMessage : (NSNotification *)notification {
455+ CDVPluginResult *result = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsDictionary: @{@" eventName" : @" receiveChatRoomMessage " , @" value" : notification.object }];
456456 [result setKeepCallback: @(true )];
457457
458458 [self .commandDelegate sendPluginResult: result callbackId: self .callBack.callbackId];
@@ -2156,22 +2156,23 @@ - (void)deleteMessageById:(CDVInvokedUrlCommand *)command {
21562156 }];
21572157}
21582158
2159- - (void )getChatroomInfoListOfApp : (CDVInvokedUrlCommand *)command {
2159+ - (void )getChatRoomInfoListOfApp : (CDVInvokedUrlCommand *)command {
21602160 NSDictionary * param = [command argumentAtIndex: 0 ];
21612161 NSNumber *start = nil ;
21622162 NSNumber *count = nil ;
2163- if (! param[@" start" ]) {
2163+ if (param[@" start" ]) {
21642164 [self returnParamError: command];
2165- start = param[@" start" ];
21662165 return ;
21672166 }
21682167
2169- if (! param[@" count" ]) {
2168+ if (param[@" count" ]) {
21702169 [self returnParamError: command];
2171- count = param[@" count" ];
21722170 return ;
21732171 }
21742172
2173+ start = param[@" start" ];
2174+ count = param[@" count" ];
2175+
21752176 NSString *appKey = nil ;
21762177 if (param[@" appKey" ]) {
21772178 appKey = param[@" appKey" ];
@@ -2194,7 +2195,7 @@ - (void)getChatroomInfoListOfApp:(CDVInvokedUrlCommand *)command {
21942195 }];
21952196}
21962197
2197- - (void )getChatroomInfoListOfUser : (CDVInvokedUrlCommand *)command {
2198+ - (void )getChatRoomInfoListOfUser : (CDVInvokedUrlCommand *)command {
21982199 [JMSGChatRoom getMyChatRoomListCompletionHandler: ^(id resultObject, NSError *error) {
21992200 if (error) {
22002201 [self handleResultWithDictionary: nil command: command error: error];
@@ -2211,7 +2212,7 @@ - (void)getChatroomInfoListOfUser:(CDVInvokedUrlCommand *)command {
22112212 }];
22122213}
22132214
2214- - (void )getChatroomInfoListById : (CDVInvokedUrlCommand *)command {
2215+ - (void )getChatRoomInfoListById : (CDVInvokedUrlCommand *)command {
22152216 NSDictionary * param = [command argumentAtIndex: 0 ];
22162217
22172218 if (!param[@" roomIds" ]) {
@@ -2235,7 +2236,7 @@ - (void)getChatroomInfoListById:(CDVInvokedUrlCommand *)command {
22352236 }];
22362237}
22372238
2238- - (void )enterChatroom : (CDVInvokedUrlCommand *)command {
2239+ - (void )enterChatRoom : (CDVInvokedUrlCommand *)command {
22392240 NSDictionary * param = [command argumentAtIndex: 0 ];
22402241
22412242 if (!param[@" roomId" ]) {
@@ -2255,7 +2256,7 @@ - (void)enterChatroom:(CDVInvokedUrlCommand *)command {
22552256 }];
22562257}
22572258
2258- - (void )exitChatroom : (CDVInvokedUrlCommand *)command {
2259+ - (void )exitChatRoom : (CDVInvokedUrlCommand *)command {
22592260 NSDictionary * param = [command argumentAtIndex: 0 ];
22602261
22612262 if (!param[@" roomId" ]) {
@@ -2272,7 +2273,7 @@ - (void)exitChatroom:(CDVInvokedUrlCommand *)command {
22722273 }];
22732274}
22742275
2275- - (void )getChatroomConversation : (CDVInvokedUrlCommand *)command {
2276+ - (void )getChatRoomConversation : (CDVInvokedUrlCommand *)command {
22762277 NSDictionary * param = [command argumentAtIndex: 0 ];
22772278
22782279 if (!param[@" roomId" ]) {
@@ -2291,7 +2292,7 @@ - (void)getChatroomConversation:(CDVInvokedUrlCommand *)command {
22912292 [self handleResultWithDictionary: [chatRoomConversation conversationToDictionary ] command: command error: error];
22922293}
22932294
2294- - (void )getChatroomConversationList : (CDVInvokedUrlCommand *)command {
2295+ - (void )getChatRoomConversationList : (CDVInvokedUrlCommand *)command {
22952296
22962297 [JMSGConversation allChatRoomConversation: ^(id resultObject, NSError *error) {
22972298 if (error) {
@@ -2309,7 +2310,7 @@ - (void)getChatroomConversationList:(CDVInvokedUrlCommand *)command {
23092310 }];
23102311}
23112312
2312- - (void )getChatroomOwner : (CDVInvokedUrlCommand *)command {
2313+ - (void )getChatRoomOwner : (CDVInvokedUrlCommand *)command {
23132314 NSDictionary * param = [command argumentAtIndex: 0 ];
23142315
23152316 if (!param[@" roomId" ]) {
0 commit comments