summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-09-29 10:28:46 +0200
committerJoas Schilling <coding@schilljs.com>2023-09-29 10:28:46 +0200
commit3d4d473c40bdbd61f928ee018277978d8c9d2557 (patch)
tree800f2fa08d6d4d5f881c54ac149a993815f92bc3
parent0ee7f8b53f9e00f6726110e61fd3c50a3bde1a78 (diff)
fix(note-to-self): Don't allow to start calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/Participant.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Participant.php b/lib/Participant.php
index c0d0bb7ad..e5f63ae22 100644
--- a/lib/Participant.php
+++ b/lib/Participant.php
@@ -93,6 +93,10 @@ class Participant {
}
public function canStartCall(IConfig $config): bool {
+ if ($this->room->getType() === Room::TYPE_NOTE_TO_SELF) {
+ return false;
+ }
+
$defaultStartCall = (int) $config->getAppValue('spreed', 'start_calls', (string) Room::START_CALL_EVERYONE);
if ($defaultStartCall === Room::START_CALL_NOONE) {