try to changeKeyboard everytime host changes

This commit is contained in:
Miroslav Šedivý 2020-06-16 01:26:26 +02:00
parent 01564a57b5
commit 48bbededc1

View File

@ -165,6 +165,8 @@ export class NekoClient extends BaseClient implements EventEmitter<NekoEvents> {
///////////////////////////// /////////////////////////////
protected [EVENT.CONTROL.LOCKED]({ id }: ControlPayload) { protected [EVENT.CONTROL.LOCKED]({ id }: ControlPayload) {
this.$accessor.remote.setHost(id) this.$accessor.remote.setHost(id)
this.$accessor.remote.changeKeyboard()
const member = this.member(id) const member = this.member(id)
if (!member) { if (!member) {
return return
@ -433,6 +435,7 @@ export class NekoClient extends BaseClient implements EventEmitter<NekoEvents> {
protected [EVENT.ADMIN.CONTROL]({ id, target }: AdminTargetPayload) { protected [EVENT.ADMIN.CONTROL]({ id, target }: AdminTargetPayload) {
this.$accessor.remote.setHost(id) this.$accessor.remote.setHost(id)
this.$accessor.remote.changeKeyboard()
if (!target) { if (!target) {
this.$accessor.chat.newMessage({ this.$accessor.chat.newMessage({
@ -497,6 +500,7 @@ export class NekoClient extends BaseClient implements EventEmitter<NekoEvents> {
} }
this.$accessor.remote.setHost(member) this.$accessor.remote.setHost(member)
this.$accessor.remote.changeKeyboard()
this.$accessor.chat.newMessage({ this.$accessor.chat.newMessage({
id, id,