diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-21 15:59:38 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-21 15:59:38 +0200 |
commit | 5f2dfbf3e69167fd1954b1e7af420335750e0207 (patch) | |
tree | 85a18c57eb6fad5806afda873e8ada266ea730fb /lib/Controller/PageController.php | |
parent | 00c6a516e25861ea6f967bc6f4f40fcdfb6694a5 (diff) |
Don't break on other errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r-- | lib/Controller/PageController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index eab9e146f..ba59d0f71 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -242,7 +242,8 @@ class PageController extends Controller { } } else { $response = $this->api->createRoom(Room::ONE_TO_ONE_CALL, $callUser); - if ($response->getStatus() !== Http::STATUS_NOT_FOUND) { + if ($response->getStatus() === Http::STATUS_OK + || $response->getStatus() === Http::STATUS_CREATED) { $data = $response->getData(); return $this->redirectToConversation($data['token']); } |