Do not go to add participants view when clicking on participants layout if not admin

This commit is contained in:
Sylvain Berfini 2018-03-09 14:21:51 +01:00
parent f6c0046ae7
commit 754ca6d64e

View file

@ -169,7 +169,9 @@ public class GroupInfoFragment extends Fragment implements ChatRoomListener {
mAddParticipantsLayout.setOnClickListener(new View.OnClickListener() { mAddParticipantsLayout.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
LinphoneActivity.instance().goToChatCreator(mGroupChatRoomAddress != null ? mGroupChatRoomAddress.asString() : null, mParticipants, mSubject, !mIsAlreadyCreatedGroup); if (mIsEditionEnabled) {
LinphoneActivity.instance().goToChatCreator(mGroupChatRoomAddress != null ? mGroupChatRoomAddress.asString() : null, mParticipants, mSubject, !mIsAlreadyCreatedGroup);
}
} }
}); });
mAddParticipantsButton = view.findViewById(R.id.addParticipants); mAddParticipantsButton = view.findViewById(R.id.addParticipants);