Skip to content

Commit

Permalink
fix android hot reload bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dujiepeng committed Jun 14, 2023
1 parent 37eaee9 commit b6fe921
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,19 @@ private void kickAllDevices(JSONObject param, String channelName, Result result)

}

private EMOptions options = null;
private void init(JSONObject param, String channelName, Result result) throws JSONException {
EMOptions options = EMOptionsHelper.fromJson(param, this.context);
if (options != null) {
onSuccess(result, channelName, null);
return;
}
options = EMOptionsHelper.fromJson(param, this.context);
EMClient.getInstance().init(this.context, options);
EMClient.getInstance().setDebugMode(param.getBoolean("debugModel"));

bindingManagers();
registerEaseListener();
onSuccess(result, channelName, null);

}

private void renewToken(JSONObject param, String channelName, Result result) throws JSONException {
Expand Down

0 comments on commit b6fe921

Please sign in to comment.