Fix posts duplication on profile follow/unfollow

This commit is contained in:
Ammar Githam 2020-09-19 17:06:00 +09:00
parent 0e881ba7c5
commit 07bb2f47f1
1 changed files with 2 additions and 2 deletions

View File

@ -648,7 +648,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
@Override @Override
public void onSuccess(final FriendshipRepoChangeRootResponse result) { public void onSuccess(final FriendshipRepoChangeRootResponse result) {
Log.d(TAG, "Unfollow success: " + result); Log.d(TAG, "Unfollow success: " + result);
fetchProfileDetails(); onRefresh();
} }
@Override @Override
@ -665,7 +665,7 @@ public class ProfileFragment extends Fragment implements SwipeRefreshLayout.OnRe
@Override @Override
public void onSuccess(final FriendshipRepoChangeRootResponse result) { public void onSuccess(final FriendshipRepoChangeRootResponse result) {
Log.d(TAG, "Follow success: " + result); Log.d(TAG, "Follow success: " + result);
fetchProfileDetails(); onRefresh();
} }
@Override @Override