mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
try to changeKeyboard everytime host changes
This commit is contained in:
parent
01564a57b5
commit
48bbededc1
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user