diff --git a/assets/js/components/sidebar/main.js b/assets/js/components/sidebar/main.js index 9162b15b..af5594bc 100644 --- a/assets/js/components/sidebar/main.js +++ b/assets/js/components/sidebar/main.js @@ -118,9 +118,15 @@ ComunicWeb.components.sideBar.main = { }); this.refreshMemberships(userMemberships); + let interval = setInterval(() => { + if(userMemberships.isConnected) + this.refreshMemberships(userMemberships); + else + clearInterval(interval); + }, 15000); - // Recent conversations + /*// Recent conversations createElem2({ appendTo: section, type: "div", @@ -132,7 +138,7 @@ ComunicWeb.components.sideBar.main = { type: "ul", class: "sidebar-menu recents-conversations-list hide-on-collapse", innerHTML: "