Commit 57771314 authored by ano95's avatar ano95

Fix JSON in member list

parent 4e3bdc2d
......@@ -164,7 +164,8 @@ public class UsersOfRoomDialogFragment extends AbstractChatRoomDialogFragment {
JSONArray array = new JSONArray(procedure.getRecords());
ArrayList<String> users = new ArrayList<>();
for (int i = 0; i < array.length(); i++) {
users.add(array.getString(i));
JSONObject user = array.getJSONObject(i);
users.add(user.getString("username"));
}
onRenderUsers(users);
} catch (JSONException exception) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment