fix(frontend-assist): second-time call fix; annotation reset fix

This commit is contained in:
ShiKhu 2022-03-25 17:11:21 +01:00
parent 88be23dd12
commit d051cb4086
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,7 @@ export default class AnnotationCanvas {
}
stop = () => {
if (!this.painting) { return }
this.painting = false
this.fadeOut()
}

View file

@ -140,6 +140,7 @@ export default class AssistManager {
})
socket.on("disconnect", () => {
this.toggleRemoteControl(false)
update({ calling: CallingState.NoCall })
})
socket.on('messages', messages => {
//console.log(messages.filter(m => m._id === 41 || m._id === 44))
@ -181,6 +182,8 @@ export default class AssistManager {
// Call State
if (getState().calling === CallingState.OnCall) {
update({ calling: CallingState.Reconnecting })
} else if (getState().calling === CallingState.Requesting){
update({ calling: CallingState.NoCall })
}
})
socket.on('error', e => {