diff options
author | Joas Schilling <coding@schilljs.com> | 2019-07-26 18:28:43 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-07-30 10:36:11 +0300 |
commit | 3a0503b96f9337d313d3c3eb9570f2bbb48943e4 (patch) | |
tree | 3046919413bd47f884e70465541c2c123400e28e /lib/Controller | |
parent | 25aae9f512c8ce291834166a438d220b1e7d62cc (diff) |
Expose the message type as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/ChatController.php | 1 | ||||
-rw-r--r-- | lib/Controller/RoomController.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 5073804e8..293b5c9a0 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -349,6 +349,7 @@ class ChatController extends AEnvironmentAwareController { 'message' => $message->getMessage(), 'messageParameters' => $message->getMessageParameters(), 'systemMessage' => $message->getMessageType() === 'system' ? $message->getMessageRaw() : '', + 'messageType' => $message->getMessageType(), ]; } diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 7a547a012..8277e2600 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -328,6 +328,7 @@ class RoomController extends AEnvironmentAwareController { 'message' => $message->getMessage(), 'messageParameters' => $message->getMessageParameters(), 'systemMessage' => $message->getMessageType() === 'system' ? $message->getMessageRaw() : '', + 'messageType' => $message->getMessageType(), ]; } |