diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-11 17:14:25 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-11 17:14:25 +0300 |
commit | 44903d690a7a69d8589b1415b1ab599607d1e791 (patch) | |
tree | 30ed626a92b88e7e41f503572597baaed1edd76a /lib | |
parent | 3c634e520f925a7ef179c934ea1237202f1fb4ff (diff) |
Use 2 different system messages for the deleted reaction and the action of deleting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Chat/Parser/SystemMessage.php | 2 | ||||
-rw-r--r-- | lib/Chat/ReactionManager.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php index fb7537ad4..cbc66bdaa 100644 --- a/lib/Chat/Parser/SystemMessage.php +++ b/lib/Chat/Parser/SystemMessage.php @@ -436,7 +436,7 @@ class SystemMessage { if ($currentUserIsActor) { $parsedMessage = $this->l->t('You deleted a message'); } - } elseif ($message === 'reaction_deleted') { + } elseif ($message === 'reaction_revoked') { $parsedMessage = $this->l->t('{actor} deleted a reaction'); if ($currentUserIsActor) { $parsedMessage = $this->l->t('You deleted a reaction'); diff --git a/lib/Chat/ReactionManager.php b/lib/Chat/ReactionManager.php index c186f8b73..799e1de52 100644 --- a/lib/Chat/ReactionManager.php +++ b/lib/Chat/ReactionManager.php @@ -142,7 +142,7 @@ class ReactionManager { $chat, $participant->getAttendee()->getActorType(), $participant->getAttendee()->getActorId(), - json_encode(['message' => 'reaction_deleted', 'parameters' => ['message' => (int) $comment->getId()]]), + json_encode(['message' => 'reaction_revoked', 'parameters' => ['message' => (int) $comment->getId()]]), $this->timeFactory->getDateTime(), false, null, |