member id instead of whole object in state.

This commit is contained in:
Miroslav Šedivý
2020-12-01 23:59:02 +01:00
parent 4c247f61ff
commit a268bddc57
2 changed files with 8 additions and 23 deletions

View File

@ -3,7 +3,7 @@ export default interface State {
video: Video
control: Control
screen: Screen
member: Member
member_id: string | null
members: Record<string, Member>
}
@ -36,7 +36,7 @@ export interface Video {
export interface Control {
scroll: Scroll
clipboard: Clipboard | null
host: Member | null
host_id: string | null
}
export interface Scroll {
@ -66,8 +66,8 @@ export interface ScreenSize {
// Member
/////////////////////////////
export interface Member {
id: string | null
name: string | null
id: string
name: string
is_admin: boolean
is_watching: boolean
is_controlling: boolean