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:
authorVitor Mattos <vitor@php.rio>2022-04-08 17:11:29 +0300
committerGitHub <noreply@github.com>2022-04-08 17:11:29 +0300
commit8d1afaacb9be67364c7f661cf6c538114ea6aec0 (patch)
tree33d93f2d84350c380552ccf45ab3aa85798524a8 /lib/Chat/Parser/SystemMessage.php
parenta62ad755aadb4be7b345500f7c191ace4b1819ba (diff)
parent55ace3d96773c446623b79750aee101c77eb8f6f (diff)
Merge pull request #7114 from nextcloud/techdebt/7078/const-for-verbsv14.0.0-beta.1
Add constants for the verbs in the oc_comments table
Diffstat (limited to 'lib/Chat/Parser/SystemMessage.php')
-rw-r--r--lib/Chat/Parser/SystemMessage.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php
index 6a0a7503a..a44eb6346 100644
--- a/lib/Chat/Parser/SystemMessage.php
+++ b/lib/Chat/Parser/SystemMessage.php
@@ -376,7 +376,7 @@ class SystemMessage {
if (isset($metaData['messageType']) && $metaData['messageType'] === 'voice-message') {
$chatMessage->setMessageType('voice-message');
} else {
- $chatMessage->setMessageType('comment');
+ $chatMessage->setMessageType(ChatManager::VERB_MESSAGE);
}
} catch (\Exception $e) {
$parsedMessage = $this->l->t('{actor} shared a file which is no longer available');
@@ -395,7 +395,7 @@ class SystemMessage {
$parsedMessage = $this->l->t('The shared location is malformed');
}
- $chatMessage->setMessageType('comment');
+ $chatMessage->setMessageType(ChatManager::VERB_MESSAGE);
} elseif ($message === 'matterbridge_config_added') {
$parsedMessage = $this->l->t('{actor} set up Matterbridge to synchronize this conversation with other chats');
if ($currentUserIsActor) {
@@ -473,7 +473,7 @@ class SystemMessage {
$currentActorId === $parsedParameters['actor']['id'];
}
- if ($chatMessage->getMessageType() === 'comment_deleted') {
+ if ($chatMessage->getMessageType() === ChatManager::VERB_MESSAGE_DELETED) {
$message = 'message_deleted';
$parsedMessage = $this->l->t('Message deleted by author');