Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2021-12-16 14:20:35 +0300
committerVitor Mattos <vitor@php.rio>2022-02-15 18:45:40 +0300
commit3b30c900cbdc399cae93c2b26ad9b466179d1f82 (patch)
tree533e8ce216b32d74a84a94ee9027cffe2fa613b3 /lib/Model
parent213d9ea9621133167a63f87f4fb7b784c1321090 (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.php2
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') {