diff options
author | Joas Schilling <coding@schilljs.com> | 2023-09-29 10:20:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-09-29 10:20:25 +0200 |
commit | 0ee7f8b53f9e00f6726110e61fd3c50a3bde1a78 (patch) | |
tree | 8e86f3a58c7e4c5be26ce8e36c160927e04af1ea | |
parent | 3db28f6e98d177ad345459ca157c499d5b0b7ced (diff) |
fix(note-to-self): Don't allow to leave "Note to self"
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Service/RoomFormatter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/RoomFormatter.php b/lib/Service/RoomFormatter.php index 4581dfdef..1eefea02e 100644 --- a/lib/Service/RoomFormatter.php +++ b/lib/Service/RoomFormatter.php @@ -300,7 +300,7 @@ class RoomFormatter { $roomData['canDeleteConversation'] = $room->getType() !== Room::TYPE_ONE_TO_ONE && $room->getType() !== Room::TYPE_ONE_TO_ONE_FORMER && $currentParticipant->hasModeratorPermissions(false); - $roomData['canLeaveConversation'] = true; + $roomData['canLeaveConversation'] = $room->getType() !== Room::TYPE_NOTE_TO_SELF; $roomData['canEnableSIP'] = $this->talkConfig->isSIPConfigured() && !preg_match(Room::SIP_INCOMPATIBLE_REGEX, $room->getToken()) |