fix(ui): fixing messages for remote control

This commit is contained in:
nick-delirium 2023-10-04 16:34:52 +02:00
parent aa40945597
commit 0477ba615c

View file

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