1
0
mirror of https://github.com/nextcloud/talk-android synced 2025-07-12 23:34:31 +01:00

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) { public boolean canModerate(UserEntity conversationUser) {
return (Participant.ParticipantType.OWNER.equals(participantType) return ((Participant.ParticipantType.OWNER.equals(participantType)
|| Participant.ParticipantType.MODERATOR.equals(participantType) && !isLockedOneToOne(conversationUser)); || Participant.ParticipantType.MODERATOR.equals(participantType)) && !isLockedOneToOne(conversationUser));
} }
public boolean isNameEditable(UserEntity conversationUser) { public boolean isNameEditable(UserEntity conversationUser) {