inactive cursors enabled from server.

This commit is contained in:
Miroslav Šedivý
2021-11-01 20:49:59 +01:00
parent 077105332f
commit ec477f619b
5 changed files with 25 additions and 9 deletions

View File

@ -83,6 +83,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
this._localLog.debug(`EVENT.SYSTEM_INIT`)
Vue.set(this._state, 'session_id', conf.session_id)
Vue.set(this._state.control, 'implicit_hosting', conf.implicit_hosting)
Vue.set(this._state.cursors, 'enabled', conf.inactive_cursors)
Vue.set(this._state.connection, 'screencast', conf.screencast_enabled)
Vue.set(this._state.connection.webrtc, 'videos', conf.webrtc.videos)
@ -189,8 +190,7 @@ export class NekoMessages extends EventEmitter<NekoEvents> {
}
protected [EVENT.SESSION_CURSORS](cursors: message.SessionCursor[]) {
// TODO: State retention logic.
Vue.set(this._state, 'cursors', cursors)
Vue.set(this._state.cursors, 'list', cursors)
}
/////////////////////////////