QueennN %!s(int64=4) %!d(string=hai) anos
pai
achega
93c5e48d8f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/App.vue

+ 5 - 0
src/App.vue

@@ -15,6 +15,11 @@ export default {
     });
 
     this.$store.state.peer.on("call", (call) => {
+      if (
+        this.$store.state.receiveCalls.findIndex((c) => c.peer == call.peer) !=
+        -1
+      )
+        return false;
       call.on("close", () => {
         console.log("call closed");
       });