Skip to content

Commit

Permalink
fixup! Adjust namespace and dictionary to match Talk
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen committed Oct 6, 2023
1 parent e0da807 commit 17e75dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion lib/Controller/PollController.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ public function closePoll(int $pollId): DataResponse {
*/
protected function renderPoll(Poll $poll, array $votedSelf = [], array $detailedVotes = []): array {
$data = $poll->asArray();
unset($data['roomId']);

$canSeeSummary = !empty($votedSelf) && $poll->getResultMode() === Poll::MODE_PUBLIC;

Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/RoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ public function createGuestByDialIn(): DataResponse {
* Set active state for a session
*
* @param int $state of the room
* @return DataResponse<Http::STATUS_OK, TalkRoom, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, null, array{}>
* @return DataResponse<Http::STATUS_OK, TalkRoom, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array<empty>, array{}>
*
* 200: Session state set successfully
* 400: The provided new state was invalid
Expand Down
18 changes: 9 additions & 9 deletions lib/ResponseDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@
* user_id: string,
* }
*
* @psalm-type TalkMatterbridgeConfigFields = array<array<string, mixed>>
*
* @psalm-type TalkMatterbridge = array{
* enabled: bool,
* parts: TalkMatterbridgeConfigFields,
* pid: int,
* }
*
* @psalm-type TalkMatterbridgeConfigFields = array<array<string, mixed>>
*
* @psalm-type TalkMatterbridgeProcessState = array{
* log: string,
* running: bool,
Expand All @@ -138,6 +138,13 @@
* statusMessage?: ?string,
* }
*
* @psalm-type TalkPollVote = array{
* actorDisplayName: string,
* actorId: string,
* actorType: string,
* optionId: int,
* }
*
* @psalm-type TalkPoll = array{
* actorDisplayName: string,
* actorId: string,
Expand All @@ -154,13 +161,6 @@
* votes?: array<string, int>,
* }
*
* @psalm-type TalkPollVote = array{
* actorDisplayName: string,
* actorId: string,
* actorType: string,
* optionId: int,
* }
*
* @psalm-type TalkReaction = array{
* actorDisplayName: string,
* actorId: string,
Expand Down

0 comments on commit 17e75dc

Please sign in to comment.