diff options
author | Joas Schilling <coding@schilljs.com> | 2018-07-20 18:34:51 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-07-27 12:01:38 +0300 |
commit | ee4ba11a53aa73225bab7c717e18a7d3aecfd92e (patch) | |
tree | 3aeaf00acb8054b074bf0f678bbdb8ffa4996515 /lib/Manager.php | |
parent | a87de565afbd5ee73dffaad26c594dc4d4e928a8 (diff) |
Start with system chat messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Manager.php')
-rw-r--r-- | lib/Manager.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Manager.php b/lib/Manager.php index 27e5340d0..f9a46b1e2 100644 --- a/lib/Manager.php +++ b/lib/Manager.php @@ -398,7 +398,11 @@ class Manager { $query->execute(); $roomId = $query->getLastInsertId(); - return $this->getRoomById($roomId); + $room = $this->getRoomById($roomId); + + $this->dispatcher->dispatch(Room::class . '::createRoom', new GenericEvent($room)); + + return $room; } /** |