Always display which participant is admin in group chat info
This commit is contained in:
parent
66ad2a6b05
commit
a9aa99e5b8
2 changed files with 13 additions and 15 deletions
|
@ -117,12 +117,10 @@ public class GroupInfoAdapter extends BaseAdapter {
|
|||
});
|
||||
|
||||
delete.setVisibility(View.VISIBLE);
|
||||
adminLayout.setVisibility(View.VISIBLE);
|
||||
if (mHideAdminFeatures) {
|
||||
delete.setVisibility(View.GONE);
|
||||
adminLayout.setVisibility(View.GONE);
|
||||
} else if (mIsCreation) {
|
||||
adminLayout.setVisibility(View.GONE);
|
||||
delete.setVisibility(View.INVISIBLE);
|
||||
isAdmin.setOnClickListener(null); // Do not allow not admin to remove it's rights but display admins
|
||||
isNotAdmin.setVisibility(View.GONE); // Hide not admin button for not admin participants
|
||||
}
|
||||
|
||||
return view;
|
||||
|
|
|
@ -331,8 +331,8 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
|
|||
if (mChatRoom.getMe().isAdmin() != mIsEditionEnabled) {
|
||||
// Either we weren't admin and we are now or the other way around
|
||||
mIsEditionEnabled = mChatRoom.getMe().isAdmin();
|
||||
refreshAdminRights();
|
||||
displayMeAdminStatusUpdated();
|
||||
refreshAdminRights();
|
||||
}
|
||||
refreshParticipantsList();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue