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