diff options
author | Vitor Mattos <vitor@php.rio> | 2021-12-16 14:20:35 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-02-15 18:45:40 +0300 |
commit | 3b30c900cbdc399cae93c2b26ad9b466179d1f82 (patch) | |
tree | 533e8ce216b32d74a84a94ee9027cffe2fa613b3 /lib/Model | |
parent | 213d9ea9621133167a63f87f4fb7b784c1321090 (diff) |
Api changes to react to a message: reactions add
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/Message.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Model/Message.php b/lib/Model/Message.php index 30f1fa6d9..118adad72 100644 --- a/lib/Model/Message.php +++ b/lib/Model/Message.php @@ -163,6 +163,7 @@ class Message { return $this->getMessageType() !== 'system' && $this->getMessageType() !== 'command' && $this->getMessageType() !== 'comment_deleted' && + $this->getMessageType() !== 'reaction' && \in_array($this->getActorType(), [Attendee::ACTOR_USERS, Attendee::ACTOR_GUESTS]); } @@ -180,6 +181,7 @@ class Message { 'messageType' => $this->getMessageType(), 'isReplyable' => $this->isReplyable(), 'referenceId' => (string) $this->getComment()->getReferenceId(), + 'reactions' => $this->getComment()->getReactions(), ]; if ($this->getMessageType() === 'comment_deleted') { |