diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2020-09-02 15:48:48 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2020-09-02 15:48:48 +0200 |
commit | 943efd6b37880abfbdd0e6022e5dfe24922d8999 (patch) | |
tree | 8c8a65c1d57070a7cbb0e4ecae5dd7c87bf3fa57 /lib/Controller/MatterbridgeController.php | |
parent | b46f39e70d804ed45259800e8d757469e4ae1e07 (diff) |
get process state when editing, launch 60sec freq loop getting state when token changes
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib/Controller/MatterbridgeController.php')
-rw-r--r-- | lib/Controller/MatterbridgeController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/MatterbridgeController.php b/lib/Controller/MatterbridgeController.php index 8c44e297a..cea3f4f2c 100644 --- a/lib/Controller/MatterbridgeController.php +++ b/lib/Controller/MatterbridgeController.php @@ -93,11 +93,11 @@ class MatterbridgeController extends AEnvironmentAwareController { */ public function editBridgeOfRoom(bool $enabled, array $parts = []): DataResponse { try { - $success = $this->bridgeManager->editBridgeOfRoom($this->room, $enabled, $parts); + $state = $this->bridgeManager->editBridgeOfRoom($this->room, $enabled, $parts); } catch (ImpossibleToKillException $e) { return new DataResponse(['error' => $e->getMessage()], Http::STATUS_NOT_ACCEPTABLE); } - return new DataResponse($success); + return new DataResponse($state); } /** |