mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
memberState -> sessionState.
This commit is contained in:
parent
fabf41662f
commit
63fbbeaa09
@ -141,7 +141,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
|
|||||||
this.emit('member.updated', id)
|
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)
|
this._log.debug('EVENT.MEMBER_STATE', id)
|
||||||
Vue.set(this.state.members[id], 'state', state)
|
Vue.set(this.state.members[id], 'state', state)
|
||||||
this.emit('member.updated', id)
|
this.emit('member.updated', id)
|
||||||
|
@ -76,7 +76,7 @@ export interface MemberProfile {
|
|||||||
can_access_clipboard: boolean
|
can_access_clipboard: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MemberState {
|
export interface SessionState {
|
||||||
event: string | undefined
|
event: string | undefined
|
||||||
id: string
|
id: string
|
||||||
is_connected: boolean
|
is_connected: boolean
|
||||||
|
@ -96,7 +96,7 @@ export interface MemberProfile {
|
|||||||
can_access_clipboard: boolean
|
can_access_clipboard: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MemberState {
|
export interface SessionState {
|
||||||
is_connected: boolean
|
is_connected: boolean
|
||||||
is_watching: boolean
|
is_watching: boolean
|
||||||
}
|
}
|
||||||
@ -104,5 +104,5 @@ export interface MemberState {
|
|||||||
export interface Member {
|
export interface Member {
|
||||||
id: string
|
id: string
|
||||||
profile: MemberProfile
|
profile: MemberProfile
|
||||||
state: MemberState
|
state: SessionState
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user