26 'chatId' => $this->chat->getChatId(),
29 'chatOwner' => $this->chat->getAuthorId(),
30 'chatExtranet' => $this->chat->getExtranet() ??
false,
31 'containsCollaber' => $this->chat->containsCollaber(),
32 'users' => (
new UserCollection($this->usersToAdd))->toRestFormat([
'IDS_AS_KEY' =>
true]),
33 'newUsers' => array_values($this->usersToAdd),
34 'relations' => $this->chat->getRelationsByUserIds($this->usersToAdd)->toRestFormat(),
35 'userCount' => $this->chat->getUserCount(),