memberState -> sessionState.

This commit is contained in:
Miroslav Šedivý 2021-03-13 23:41:13 +01:00
parent fabf41662f
commit 63fbbeaa09
3 changed files with 4 additions and 4 deletions

View File

@ -141,7 +141,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
this.emit('member.updated', id)
}
protected [EVENT.MEMBER_STATE]({ id, ...state }: message.MemberState) {
protected [EVENT.MEMBER_STATE]({ id, ...state }: message.SessionState) {
this._log.debug('EVENT.MEMBER_STATE', id)
Vue.set(this.state.members[id], 'state', state)
this.emit('member.updated', id)

View File

@ -76,7 +76,7 @@ export interface MemberProfile {
can_access_clipboard: boolean
}
export interface MemberState {
export interface SessionState {
event: string | undefined
id: string
is_connected: boolean

View File

@ -96,7 +96,7 @@ export interface MemberProfile {
can_access_clipboard: boolean
}
export interface MemberState {
export interface SessionState {
is_connected: boolean
is_watching: boolean
}
@ -104,5 +104,5 @@ export interface MemberState {
export interface Member {
id: string
profile: MemberProfile
state: MemberState
state: SessionState
}