1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-26 08:37:29 +00:00

fb messenger experience

This commit is contained in:
Austin Huang 2020-10-04 10:24:32 -04:00 committed by GitHub
parent 84fd88024d
commit 4cf441773e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,11 +265,11 @@ public final class ResponseBodyUtils {
final ProfileModel[] userModels = new ProfileModel[usersLen];
for (int j = 0; j < usersLen; ++j) {
final JSONObject userObject = users.getJSONObject(j);
userModels[j] = new ProfileModel(userObject.getBoolean("is_private"),
userModels[j] = new ProfileModel(userObject.optBoolean("is_private"),
false,
userObject.optBoolean("is_verified"),
String.valueOf(userObject.get("pk")),
userObject.getString("username"),
userObject.optString("username"), // optional cuz fb users
userObject.getString("full_name"),
null, null,
userObject.getString("profile_pic_url"),