зеркало из https://github.com/nextcloud/spreed.git
Allow calling "RoomController::formatLastMessage" without a current user.
This fails with the new type hinting which expects a "IUser" object. Signed-off-by: Joachim Bauch <bauch@struktur.de>
This commit is contained in:
Родитель
f2b358f26a
Коммит
48a0c8ffcf
|
@ -365,7 +365,7 @@ class RoomController extends OCSController {
|
|||
* @param IUser $currentUser
|
||||
* @return array
|
||||
*/
|
||||
protected function formatLastMessage(IComment $lastMessage, IUser $currentUser): array {
|
||||
protected function formatLastMessage(IComment $lastMessage, IUser $currentUser = null): array {
|
||||
list($message, $messageParameters) = $this->messageParser->parseMessage($lastMessage, $this->l10n, $currentUser);
|
||||
|
||||
$displayName = '';
|
||||
|
|
Загрузка…
Ссылка в новой задаче