зеркало из https://github.com/nextcloud/spreed.git
fix(chat): Fix OpenAPI optional attributes
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
98502abb15
Коммит
ad2d2afcf7
|
@ -1116,7 +1116,7 @@ class ChatController extends AEnvironmentAwareController {
|
|||
$data['status'] = $statuses[$data['id']]->getStatus();
|
||||
$data['statusIcon'] = $statuses[$data['id']]->getIcon();
|
||||
$data['statusMessage'] = $statuses[$data['id']]->getMessage();
|
||||
$data['statusClearAt'] = $statuses[$data['id']]->getClearAt();
|
||||
$data['statusClearAt'] = $statuses[$data['id']]->getClearAt()?->getTimestamp();
|
||||
}
|
||||
|
||||
$output[] = $data;
|
||||
|
|
|
@ -60,10 +60,10 @@ namespace OCA\Talk;
|
|||
* id: string,
|
||||
* label: string,
|
||||
* source: string,
|
||||
* status: ?string,
|
||||
* statusClearAt: ?int,
|
||||
* statusIcon: ?string,
|
||||
* statusMessage: ?string,
|
||||
* status?: string,
|
||||
* statusClearAt?: ?int,
|
||||
* statusIcon?: ?string,
|
||||
* statusMessage?: ?string,
|
||||
* }
|
||||
*
|
||||
* @psalm-type TalkChatMessage = array{
|
||||
|
|
Загрузка…
Ссылка в новой задаче