QueennN 4 years ago
parent
commit
93c5e48d8f
1 changed files with 5 additions and 0 deletions
  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");
       });