Skip to content

Commit 03bfafb

Browse files
authored
Merge pull request #536 from easemob/dev_3.9.9
Dev 3.9.9
2 parents 7485091 + 8bf9881 commit 03bfafb

16 files changed

+43
-12
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
## NEXT
22

3+
# 3.9.9
4+
修复:
5+
修复极端情况下 SDK 崩溃的问题。
6+
7+
## 3.9.7+4
8+
修复:
9+
1. 安卓不执行onGroupDestroyed回调;
10+
2. 构造位置消息时无法设置buildingName;
11+
12+
## 3.9.7+3
13+
修复:
14+
1. 安卓不会执行 onAutoAcceptInvitationFromGroup 回调;
15+
316
## 3.9.7+2
417

518
修复:

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ tasks.withType(JavaCompile){
4949

5050
dependencies {
5151
api 'androidx.appcompat:appcompat:1.1.0'
52-
implementation 'io.hyphenate:hyphenate-chat:3.9.7'
52+
implementation 'io.hyphenate:hyphenate-chat:3.9.9'
5353
}

android/src/main/java/com/easemob/im_flutter_sdk/EMChatManagerWrapper.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,11 @@ private void getMessage(JSONObject param, String channelName, Result result) thr
279279

280280
asyncRunnable(() -> {
281281
EMMessage msg = EMClient.getInstance().chatManager().getMessage(msgId);
282-
onSuccess(result, channelName, EMMessageHelper.toJson(msg));
282+
if(msg == null) {
283+
onSuccess(result, channelName, null);
284+
}else {
285+
onSuccess(result, channelName, EMMessageHelper.toJson(msg));
286+
}
283287
});
284288
}
285289

@@ -775,8 +779,9 @@ public void onReactionChanged(List<EMMessageReactionChange> messageReactionChang
775779
};
776780

777781
conversationListener = new EMConversationListener() {
782+
778783
@Override
779-
public void onCoversationUpdate() {
784+
public void onConversationUpdate() {
780785
Map<String, Object> data = new HashMap<>();
781786
post(() -> channel.invokeMethod(EMSDKMethod.onConversationUpdate, data));
782787
}

android/src/main/java/com/easemob/im_flutter_sdk/EMConversationWrapper.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ private void loadMsgWithId(JSONObject params, String channelName, Result result)
210210
String msgId = params.getString("msg_id");
211211
asyncRunnable(()->{
212212
EMMessage msg = EMClient.getInstance().chatManager().getMessage(msgId);
213-
onSuccess(result, channelName, EMMessageHelper.toJson(msg));
213+
if(msg == null) {
214+
onSuccess(result, channelName, null);
215+
}else {
216+
onSuccess(result, channelName, EMMessageHelper.toJson(msg));
217+
}
214218
});
215219
}
216220

android/src/main/java/com/easemob/im_flutter_sdk/EMGroupManagerWrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ public void onSuccess(EMGroup object) {
586586
}
587587
};
588588

589-
EMClient.getInstance().groupManager().aysncMuteGroupMembers(groupId, members, duration, callBack);
589+
EMClient.getInstance().groupManager().asyncMuteGroupMembers(groupId, members, duration, callBack);
590590
}
591591

592592
private void unMuteMembers(JSONObject param, String channelName, Result result) throws JSONException {
@@ -965,7 +965,7 @@ public void onGroupDestroyed(String groupId, String groupName) {
965965
EMListenerHandle.getInstance().addHandle(
966966
()-> {
967967
Map<String, Object> data = new HashMap<>();
968-
data.put("type", "groupGroupDestroyed");
968+
data.put("type", "groupDestroyed");
969969
data.put("groupId", groupId);
970970
data.put("groupName", groupName);
971971
post(() -> channel.invokeMethod(EMSDKMethod.onGroupChanged, data));
@@ -979,7 +979,7 @@ public void onAutoAcceptInvitationFromGroup(String groupId, String inviter, Stri
979979
EMListenerHandle.getInstance().addHandle(
980980
()-> {
981981
Map<String, Object> data = new HashMap<>();
982-
data.put("type", "groupAutoAcceptInvitationFromGroup");
982+
data.put("type", "groupAutoAcceptInvitation");
983983
data.put("groupId", groupId);
984984
data.put("inviter", inviter);
985985
data.put("inviteMessage", inviteMessage);

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '10.0'
2+
platform :ios, '11.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/im_flutter_sdk.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ A new flutter plugin project.
2121
s.public_header_files = 'Classes/**/*.h'
2222

2323
s.dependency 'Flutter'
24-
s.dependency 'HyphenateChat','3.9.7.1'
25-
s.ios.deployment_target = '10.0'
24+
s.dependency 'HyphenateChat','3.9.9'
25+
s.ios.deployment_target = '11.0'
2626

2727
end
2828

lib/src/internal/chat_method_keys.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// @nodoc
12
class ChatMethodKeys {
23
/// EMClient methods
34
static const String init = "init";

lib/src/internal/em_channel_manager.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// @nodoc
12
import 'package:flutter/services.dart';
23

34
const channelPrefix = 'com.chat.im';

lib/src/internal/em_event_keys.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// @nodoc
12
class EMContactChangeEvent {
23
static const String CONTACT_ADD = 'onContactAdded';
34
static const String CONTACT_DELETE = 'onContactDeleted';
@@ -6,6 +7,7 @@ class EMContactChangeEvent {
67
static const String INVITATION_DECLINED = 'onFriendRequestDeclined';
78
}
89

10+
/// @nodoc
911
class EMChatRoomEvent {
1012
static const String ON_CHAT_ROOM_DESTROYED = "chatroomDestroyed";
1113
static const String ON_MEMBER_JOINED = "chatroomMemberJoined";
@@ -26,6 +28,7 @@ class EMChatRoomEvent {
2628
static const String ON_ATTRIBUTES_REMOVED = "chatroomAttributesDidRemoved";
2729
}
2830

31+
/// @nodoc
2932
class EMGroupChangeEvent {
3033
static const String ON_INVITATION_RECEIVED = "groupInvitationReceived";
3134
static const String ON_INVITATION_ACCEPTED = "groupInvitationAccepted";

0 commit comments

Comments
 (0)