fix(frontend-assist): second-time call fix; annotation reset fix
This commit is contained in:
parent
88be23dd12
commit
d051cb4086
2 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ export default class AnnotationCanvas {
|
|||
}
|
||||
|
||||
stop = () => {
|
||||
if (!this.painting) { return }
|
||||
this.painting = false
|
||||
this.fadeOut()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue