diff --git a/assets/js/components/calls/controller.js b/assets/js/components/calls/controller.js index ce9c7d06..02598a67 100644 --- a/assets/js/components/calls/controller.js +++ b/assets/js/components/calls/controller.js @@ -99,8 +99,9 @@ document.addEventListener("wsClosed", () => { }) -document.addEventListener("wsOpen", () => { +document.addEventListener("openPage", () => { CallsController.GetListLocalStorage().forEach(async c => { - CallsController.Open(await getSingleConversation(c)) + if(!OpenConversations.has(c)) + CallsController.Open(await getSingleConversation(c)) }) }) \ No newline at end of file