Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement channel slice #1

Open
hugoponthieu opened this issue May 12, 2024 · 0 comments
Open

Implement channel slice #1

hugoponthieu opened this issue May 12, 2024 · 0 comments

Comments

@hugoponthieu
Copy link
Member

Implement the channel slice
This slice is needed to store the state of the connection in channels. It will manage this state:

export interface ChannelsState {
	focusedChannel: ChannelEntity
	connected: boolean
}

The focused voice channel is set to an empty channel when the user is not connected and the boolean is set to false.
You guessed it when the user connect to a channel it store this channel in the store and the connected boolean is set to true

This slice will expose two methods:

setFocusedChannel(state, { payload })
unsetFocusedChannel(state)

Example

@NathaelB NathaelB transferred this issue from DO-2K23-26/beep-api May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant