Skip to content

Commit

Permalink
Merge pull request #1172 from nextcloud/add-system-message-attr
Browse files Browse the repository at this point in the history
Add missing 'systemMessage' attribute to room's lastMessage.
  • Loading branch information
nickvergessen authored Sep 4, 2018
2 parents 5549f3d + 0fde8f7 commit 23755dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/RoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ protected function formatRoom(Room $room, Participant $participant = null): arra
'timestamp' => $lastMessage->getCreationDateTime()->getTimestamp(),
'message' => $message,
'messageParameters' => $messageParameters,
'systemMessage' => $lastMessage->getVerb() === 'system' ? $lastMessage->getMessage() : '',
];
} else {
$lastMessage = [];
Expand Down

0 comments on commit 23755dd

Please sign in to comment.