Skip to content

Commit

Permalink
fix(chat): Parse system message about editing
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jan 10, 2024
1 parent 5c48091 commit 74283ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Chat/Parser/SystemMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ protected function parseMessage(Message $chatMessage): void {
if ($currentUserIsActor) {
$parsedMessage = $this->l->t('You deleted a message');
}
} elseif ($message === 'message_edited') {
$parsedMessage = $this->l->t('{actor} edited a message');
if ($currentUserIsActor) {
$parsedMessage = $this->l->t('You edited a message');
}
} elseif ($message === 'reaction_revoked') {
$parsedMessage = $this->l->t('{actor} deleted a reaction');
if ($currentUserIsActor) {
Expand Down

0 comments on commit 74283ad

Please sign in to comment.