diff --git a/lib/Command/Room/Add.php b/lib/Command/Room/Add.php
index 377741b376d..f4f8e82de51 100644
--- a/lib/Command/Room/Add.php
+++ b/lib/Command/Room/Add.php
@@ -71,6 +71,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
+ if ($room->isFederatedConversation()) {
+ $output->writeln('Room is a federated conversation.');
+ return 1;
+ }
+
if (!in_array($room->getType(), [Room::TYPE_GROUP, Room::TYPE_PUBLIC], true)) {
$output->writeln('Room is no group call.');
return 1;
diff --git a/lib/Command/Room/Delete.php b/lib/Command/Room/Delete.php
index 01427ade863..1871afcea3b 100644
--- a/lib/Command/Room/Delete.php
+++ b/lib/Command/Room/Delete.php
@@ -57,6 +57,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
+ if ($room->isFederatedConversation()) {
+ $output->writeln('Room is a federated conversation.');
+ return 1;
+ }
+
if (!in_array($room->getType(), [Room::TYPE_GROUP, Room::TYPE_PUBLIC], true)) {
$output->writeln('Room is no group call.');
return 1;
diff --git a/lib/Command/Room/Demote.php b/lib/Command/Room/Demote.php
index a150529afb6..b88a3a019c8 100644
--- a/lib/Command/Room/Demote.php
+++ b/lib/Command/Room/Demote.php
@@ -63,6 +63,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
+ if ($room->isFederatedConversation()) {
+ $output->writeln('Room is a federated conversation.');
+ return 1;
+ }
+
if (!in_array($room->getType(), [Room::TYPE_GROUP, Room::TYPE_PUBLIC], true)) {
$output->writeln('Room is no group call.');
return 1;
diff --git a/lib/Command/Room/Promote.php b/lib/Command/Room/Promote.php
index 72088457baa..7b41f020b7e 100644
--- a/lib/Command/Room/Promote.php
+++ b/lib/Command/Room/Promote.php
@@ -63,6 +63,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
+ if ($room->isFederatedConversation()) {
+ $output->writeln('Room is a federated conversation.');
+ return 1;
+ }
+
if (!in_array($room->getType(), [Room::TYPE_GROUP, Room::TYPE_PUBLIC], true)) {
$output->writeln('Room is no group call.');
return 1;
diff --git a/lib/Command/Room/Remove.php b/lib/Command/Room/Remove.php
index 38a7ca4afa9..34c946b99e4 100644
--- a/lib/Command/Room/Remove.php
+++ b/lib/Command/Room/Remove.php
@@ -63,6 +63,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
+ if ($room->isFederatedConversation()) {
+ $output->writeln('Room is a federated conversation.');
+ return 1;
+ }
+
if (!in_array($room->getType(), [Room::TYPE_GROUP, Room::TYPE_PUBLIC], true)) {
$output->writeln('Room is no group call.');
return 1;
diff --git a/lib/Command/Room/Update.php b/lib/Command/Room/Update.php
index 0f24df29c1f..86d31df4696 100644
--- a/lib/Command/Room/Update.php
+++ b/lib/Command/Room/Update.php
@@ -127,6 +127,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
+ if ($room->isFederatedConversation()) {
+ $output->writeln('Room is a federated conversation.');
+ return 1;
+ }
+
if (!in_array($room->getType(), [Room::TYPE_GROUP, Room::TYPE_PUBLIC], true)) {
$output->writeln('Room is no group call.');
return 1;