Skip to content

Commit 6c2ed93

Browse files
author
Hevin
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 6d8fd8f + 8914d2b commit 6c2ed93

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

src/ios/Plugins/JMessageHelper.m

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -419,63 +419,63 @@ - (NSMutableDictionary *)messageToDictionary {
419419

420420
switch (eventContent.eventType) {
421421
case kJMSGEventNotificationAcceptedFriendInvitation: {
422-
dict[@"evenType"] = @"acceptedFriendInvitation";
422+
dict[@"eventType"] = @"acceptedFriendInvitation";
423423
break;
424424
}
425425
case kJMSGEventNotificationAddGroupMembers: {
426-
dict[@"evenType"] = @"group_member_added";
426+
dict[@"eventType"] = @"group_member_added";
427427
break;
428428
}
429429
case kJMSGEventNotificationCreateGroup: {
430-
dict[@"evenType"] = @"createGroup";
430+
dict[@"eventType"] = @"createGroup";
431431
break;
432432
}
433433
case kJMSGEventNotificationCurrentUserInfoChange: {
434-
dict[@"evenType"] = @"currentUserInfoChange";
434+
dict[@"eventType"] = @"currentUserInfoChange";
435435
break;
436436
}
437437
case kJMSGEventNotificationDeclinedFriendInvitation: {
438-
dict[@"evenType"] = @"declinedFriendInvitation";
438+
dict[@"eventType"] = @"declinedFriendInvitation";
439439
break;
440440
}
441441
case kJMSGEventNotificationDeletedFriend: {
442-
dict[@"evenType"] = @"deletedFriend";
442+
dict[@"eventType"] = @"deletedFriend";
443443
break;
444444
}
445445
case kJMSGEventNotificationExitGroup: {
446-
dict[@"evenType"] = @"group_member_exit";
446+
dict[@"eventType"] = @"group_member_exit";
447447
break;
448448
}
449449
case kJMSGEventNotificationLoginKicked: {
450-
dict[@"evenType"] = @"loginKicked";
450+
dict[@"eventType"] = @"loginKicked";
451451
break;
452452
}
453453
case kJMSGEventNotificationMessageRetract: {
454-
dict[@"evenType"] = @"messageRetract";
454+
dict[@"eventType"] = @"messageRetract";
455455
break;
456456
}
457457
case kJMSGEventNotificationReceiveFriendInvitation: {
458-
dict[@"evenType"] = @"receiveFriendInvitation";
458+
dict[@"eventType"] = @"receiveFriendInvitation";
459459
break;
460460
}
461461
case kJMSGEventNotificationReceiveServerFriendUpdate: {
462-
dict[@"evenType"] = @"receiveServerFriendUpdate";
462+
dict[@"eventType"] = @"receiveServerFriendUpdate";
463463
break;
464464
}
465465
case kJMSGEventNotificationRemoveGroupMembers: {
466-
dict[@"evenType"] = @"group_member_removed";
466+
dict[@"eventType"] = @"group_member_removed";
467467
break;
468468
}
469469
case kJMSGEventNotificationServerAlterPassword: {
470-
dict[@"evenType"] = @"serverAlterPassword";
470+
dict[@"eventType"] = @"serverAlterPassword";
471471
break;
472472
}
473473
case kJMSGEventNotificationUpdateGroupInfo: {
474-
dict[@"evenType"] = @"updateGroupInfo";
474+
dict[@"eventType"] = @"updateGroupInfo";
475475
break;
476476
}
477477
case kJMSGEventNotificationUserLoginStatusUnexpected: {
478-
dict[@"evenType"] = @"userLoginStatusUnexpected";
478+
dict[@"eventType"] = @"userLoginStatusUnexpected";
479479
break;
480480
}
481481
default:

src/ios/Plugins/JMessagePlugin.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,18 +2160,19 @@ - (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"];

0 commit comments

Comments
 (0)