Skip to content

Commit 758772b

Browse files
committed
Update Android SDK to v2.7.1
1 parent d676134 commit 758772b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/android/ChatroomHandler.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
import cn.jpush.im.android.api.model.Conversation;
1717
import cn.jpush.im.api.BasicCallback;
1818

19-
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_CODE_CONVERSATION;
2019
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_CODE_PARAMETER;
21-
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_MSG_CONVERSATION;
2220
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_MSG_PARAMETER;
2321
import static cn.jiguang.cordova.im.JMessageUtils.handleResult;
2422
import static cn.jiguang.cordova.im.JsonUtils.toJson;
@@ -85,7 +83,7 @@ public void gotResult(int status, String desc, List<ChatRoomInfo> chatRoomInfoLi
8583
}
8684

8785
static void getChatRoomInfoListById(JSONArray data, final CallbackContext callback) {
88-
Set<Long> roomIds = new HashSet<Long>(); // JS 层为了和 iOS 统一,因此 roomId 类型为 String,在原生做转换。
86+
Set<Long> roomIds = new HashSet<Long>(); // JS 层为了和 iOS 统一,因此 roomId 类型为 String,在原生做转换。
8987

9088
try {
9189
JSONObject params = data.getJSONObject(0);
@@ -201,7 +199,7 @@ static void exitChatRoom(JSONArray data, final CallbackContext callback) {
201199
ChatRoomManager.leaveChatRoom(roomId, new BasicCallback() {
202200
@Override
203201
public void gotResult(int status, String desc) {
204-
if (status == 0) { // success
202+
if (status == 0) { // success
205203
callback.success();
206204
} else {
207205
handleResult(status, desc, callback);
-1.55 MB
Binary file not shown.
2.03 MB
Binary file not shown.

0 commit comments

Comments
 (0)