fix(ui): fixing messages for remote control

This commit is contained in:
nick-delirium 2023-10-04 16:49:00 +02:00
parent 0477ba615c
commit 8bc28c4796

View file

@ -44,9 +44,9 @@ export default class RemoteControl {
if (data === socket.id) {
if (this.store.get().remoteControl === RemoteControlStatus.Enabled) this.onEnd();
this.toggleRemoteControl(false);
this.onReject();
}
if (this.store.get().remoteControl === RemoteControlStatus.Requesting) {
this.onReject();
return this.store.update({ remoteControl: RemoteControlStatus.Disabled });
}
});