File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
android/src/main/java/com/jiguang/jmessageflutter Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ dependencies:
1717
1818//pub.dev 集成
1919dependencies:
20- jmessage_flutter: 2.1.7
20+ jmessage_flutter: 2.1.8
2121```
2222
2323
Original file line number Diff line number Diff line change @@ -315,6 +315,11 @@ static HashMap toJson(Message msg) {
315315 if (usernameList != null ) {
316316 result .put ("usernames" , toJson (usernameList ));
317317 }
318+
319+ List displayNameList = ((EventNotificationContent ) content ).getUserDisplayNames ();
320+ if (usernameList != null ) {
321+ result .put ("nicknames" , toJson (displayNameList ));
322+ }
318323 switch (((EventNotificationContent ) content ).getEventNotificationType ()) {
319324 case group_member_added :
320325 // 群成员加群事件
Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ - (NSMutableDictionary *)messageToDictionary {
316316
317317 NSArray *userArr = [eventContent getEventToUsernameList ];
318318 dict[@" usernames" ] = userArr;
319+ dict[@" nicknames" ] = userArr;
319320
320321 switch (eventContent.eventType ) {
321322 case kJMSGEventNotificationAcceptedFriendInvitation : {
Original file line number Diff line number Diff line change 11name : jmessage_flutter
22description : JIGUANG officially supported JMessage Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件(Android & iOS)(https://www.jiguang.cn).
3- version : 2.1.7
3+ version : 2.1.8
44homepage : https://www.jiguang.cn
55
66environment :
You can’t perform that action at this time.
0 commit comments