Skip to content

Commit 5fde862

Browse files
committed
fix bug: thread was added into conversation list. JIRA: HIM-19327
1 parent 5b8192e commit 5fde862

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

im_flutter_sdk_android/android/src/main/java/com/easemob/im_flutter_sdk/ConversationWrapper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ public class ConversationWrapper extends Wrapper implements MethodCallHandler{
3434
private static class ConversationParams {
3535
final String convId;
3636
final EMConversation.EMConversationType type;
37+
final boolean isThread;
3738

3839
ConversationParams(JSONObject params) throws JSONException {
3940
this.convId = params.getString("convId");
4041
this.type = EnumTools.conversationTypeFromInt(params.getInt("type"));
42+
this.isThread = params.optBoolean("isThread", false);
4143
}
4244

4345
EMConversation getConversation() {
44-
return EMClient.getInstance().chatManager().getConversation(convId, type, true);
46+
return EMClient.getInstance().chatManager().getConversation(convId, type, true, isThread);
4547
}
4648
}
4749

0 commit comments

Comments
 (0)