Fix an issue with one2one rooms not leavable

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-04-07 21:05:09 +02:00
parent a70ceb1b60
commit 08d44641d5

View File

@ -101,8 +101,8 @@ public class Conversation {
}
public boolean canModerate(UserEntity conversationUser) {
return (Participant.ParticipantType.OWNER.equals(participantType)
|| Participant.ParticipantType.MODERATOR.equals(participantType) && !isLockedOneToOne(conversationUser));
return ((Participant.ParticipantType.OWNER.equals(participantType)
|| Participant.ParticipantType.MODERATOR.equals(participantType)) && !isLockedOneToOne(conversationUser));
}
public boolean isNameEditable(UserEntity conversationUser) {