Skip to content

Conversation

@toger5
Copy link
Contributor

@toger5 toger5 commented Oct 10, 2025

Otherwise passing undefined throws.

Signed-off-by: Timo K [email protected]

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

availability and first.

Signed-off-by: Timo K <[email protected]>
Signed-off-by: Timo K <[email protected]>
@toger5 toger5 marked this pull request as ready for review October 10, 2025 09:01
@toger5 toger5 requested a review from a team as a code owner October 10, 2025 09:01
@toger5 toger5 requested a review from AndrewFerr October 10, 2025 09:01
@Half-Shot Half-Shot self-requested a review October 27, 2025 13:12
@richvdh
Copy link
Member

richvdh commented Oct 27, 2025

Improve is livekit checks

this doesn't seem to make sense? Should this be "Improve isLivekit checks" or similar?

and first.

and first?

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it is doing what it is supposed to do.

Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, missed a bit.

/**
* @deprecated see LivekitFocusSelection
*/
export const isLivekitFocusSelection = (object: any): object is LivekitFocusSelection =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@toger5 this also needs to be unknown

@toger5 toger5 requested a review from Half-Shot October 30, 2025 15:46
@Half-Shot Half-Shot changed the title [MatrixRTC] Improve is livekit checks to check for field availability and first. [MatrixRTC] Improve livekit object validation checks Nov 5, 2025
@Half-Shot
Copy link
Contributor

(There was some feedback that the title could be better in the web chapter, so I tried to tidy it up)

Comment on lines +36 to 37
export const isLivekitTransport = (object: unknown): object is LivekitTransport =>
isLivekitTransportConfig(object) && "livekit_alias" in object;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this also needs to check for typeof object.livekit_alias === "string"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants