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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Chat/ReactionManager.php')
-rw-r--r--lib/Chat/ReactionManager.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Chat/ReactionManager.php b/lib/Chat/ReactionManager.php
index 5306f2d88..3e7997ccd 100644
--- a/lib/Chat/ReactionManager.php
+++ b/lib/Chat/ReactionManager.php
@@ -94,7 +94,7 @@ class ReactionManager {
);
$comment->setParentId($parentMessage->getId());
$comment->setMessage($reaction);
- $comment->setVerb('reaction');
+ $comment->setVerb(ChatManager::VERB_REACTION);
$this->commentsManager->save($comment);
$this->notifier->notifyReacted($chat, $parentMessage, $comment);
@@ -130,7 +130,7 @@ class ReactionManager {
'deleted_on' => $this->timeFactory->getDateTime()->getTimestamp(),
])
);
- $comment->setVerb('reaction_deleted');
+ $comment->setVerb(ChatManager::VERB_REACTION_DELETED);
$this->commentsManager->save($comment);
$this->chatManager->addSystemMessage(
@@ -186,8 +186,8 @@ class ReactionManager {
if ($comment->getObjectType() !== 'chat'
|| $comment->getObjectId() !== (string) $chat->getId()
|| !in_array($comment->getVerb(), [
- 'comment',
- 'object_shared',
+ ChatManager::VERB_MESSAGE,
+ ChatManager::VERB_OBJECT_SHARED,
], true)) {
throw new ReactionOutOfContextException();
}