members as object.

This commit is contained in:
Miroslav Šedivý 2020-12-01 22:58:05 +01:00
parent 77049128df
commit 4c247f61ff
3 changed files with 3 additions and 4 deletions

View File

@ -114,7 +114,7 @@
can_control: false,
clipboard_access: false,
},
members: [],
members: {},
} as NekoState
public get connected() {

View File

@ -12,7 +12,7 @@ export interface SystemInit {
member_id: string
control_host: ControlHost
screen_size: ScreenSize
members: MemberData[]
members: Record<string, MemberData>
}
export interface SystemAdmin {
@ -21,7 +21,6 @@ export interface SystemAdmin {
broadcast_status: BroadcastStatus
}
// TODO: New.
export interface SystemDisconnect {
event: string | undefined
message: string

View File

@ -4,7 +4,7 @@ export default interface State {
control: Control
screen: Screen
member: Member
members: Member[]
members: Record<string, Member>
}
/////////////////////////////