We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ac7159 + f664ea9 commit aaf39b7Copy full SHA for aaf39b7
android/src/io/jchat/android/JMessageModule.java
@@ -224,7 +224,7 @@ public void getMyInfo(Callback callback) {
224
@ReactMethod
225
public void getUserInfo(ReadableMap map, final Callback success, final Callback fail) {
226
String username = map.getString(Constant.USERNAME);
227
- String appKey = map.getString(Constant.APP_KEY);
+ String appKey = map.hasKey(Constant.APP_KEY) ? map.getString(Constant.APP_KEY) : "";
228
JMessageClient.getUserInfo(username, appKey, new GetUserInfoCallback() {
229
@Override
230
public void gotResult(int i, String s, UserInfo userInfo) {
0 commit comments