fix(ui): fix control stop ev

This commit is contained in:
nick-delirium 2023-10-02 14:46:07 +02:00
parent c5f115affa
commit b46e929ad5

View file

@ -42,8 +42,8 @@ export default class RemoteControl {
});
socket.on('control_rejected', ({ meta, data }) => {
if (data === socket.id) {
this.toggleRemoteControl(false);
if (this.store.get().remoteControl === RemoteControlStatus.Enabled) this.onEnd();
this.toggleRemoteControl(false);
}
this.onReject();
if (this.store.get().remoteControl === RemoteControlStatus.Requesting) {