Improve the way calls are automatically reopened

This commit is contained in:
Pierre HUBERT 2020-04-11 08:17:51 +02:00
parent e46f8a36a7
commit 5598efa99c

View File

@ -99,8 +99,9 @@ document.addEventListener("wsClosed", () => {
}) })
document.addEventListener("wsOpen", () => { document.addEventListener("openPage", () => {
CallsController.GetListLocalStorage().forEach(async c => { CallsController.GetListLocalStorage().forEach(async c => {
if(!OpenConversations.has(c))
CallsController.Open(await getSingleConversation(c)) CallsController.Open(await getSingleConversation(c))
}) })
}) })