Skip to content

Commit

Permalink
Use the new and correct way to set the message type
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Feb 20, 2019
1 parent a6e915e commit 4eec2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Chat/Parser/SystemMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function parseMessage(Message $chatMessage): void {
try {
$parsedParameters['file'] = $this->getFileFromShare($parameters['share']);
$parsedMessage = '{file}';
$comment->setVerb('comment');
$chatMessage->setMessageType('comment');
} catch (\Exception $e) {
$parsedMessage = $this->l->t('{actor} shared a file which is no longer available');
if ($currentUserIsActor) {
Expand Down

0 comments on commit 4eec2a7

Please sign in to comment.