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/Controller/ChatController.php')
-rw-r--r--lib/Controller/ChatController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php
index 39149b036..2df304c59 100644
--- a/lib/Controller/ChatController.php
+++ b/lib/Controller/ChatController.php
@@ -569,7 +569,7 @@ class ChatController extends AEnvironmentAwareController {
return new DataResponse([], Http::STATUS_FORBIDDEN);
}
- if ($message->getVerb() !== 'comment' && $message->getVerb() !== 'object_shared') {
+ if ($message->getVerb() !== ChatManager::VERB_MESSAGE && $message->getVerb() !== ChatManager::VERB_OBJECT_SHARED) {
// System message (since the message is not parsed, it has type "system")
return new DataResponse([], Http::STATUS_METHOD_NOT_ALLOWED);
}
@@ -679,7 +679,7 @@ class ChatController extends AEnvironmentAwareController {
$this->room,
(int)$message->getId(),
['comment'],
- $message->getVerb() === 'comment'
+ $message->getVerb() === ChatManager::VERB_MESSAGE
);
$unreadId = (int) $previousMessage->getId();
} catch (NotFoundException $e) {