Skip to content

feat: add Ready() to Session interface#8

Open
thomas-vilte wants to merge 1 commit into
disgoorg:masterfrom
thomas-vilte:feat/session-ready
Open

feat: add Ready() to Session interface#8
thomas-vilte wants to merge 1 commit into
disgoorg:masterfrom
thomas-vilte:feat/session-ready

Conversation

@thomas-vilte

Copy link
Copy Markdown

Adds Ready() bool to the Session interface. Returns false while the MLS epoch is being established or recovered (e.g. right after joining or moving channels), true once it can encrypt frames. The noop session always returns true.

This is needed so audio senders can hold frames during the handshake window instead of trying to encrypt them and failing. See disgoorg/disgo#555 for context

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant