diff --git a/src/js/stores/chat.js b/src/js/stores/chat.js index 6ac9126..412711a 100644 --- a/src/js/stores/chat.js +++ b/src/js/stores/chat.js @@ -242,7 +242,7 @@ class Chat { self.sessions.replace(sorted); updateMenus({ conversations: self.sessions.slice(0, 10), - contacts: contacts.memberList, + contacts: contacts.memberList.filter(e => helper.isContact(e)), }); return res; } diff --git a/src/js/stores/contacts.js b/src/js/stores/contacts.js index f1a5d34..779d955 100644 --- a/src/js/stores/contacts.js +++ b/src/js/stores/contacts.js @@ -175,7 +175,7 @@ class Contacts { if (shouldUpdate) { // Update contact in menu ipcRenderer.send('menu-update', { - contacts: JSON.stringify(self.memberList), + contacts: JSON.stringify(self.memberList.filter(e => helper.isContact(e))), cookies: await helper.getCookie(), }); } @@ -221,7 +221,7 @@ class Contacts { // Update contact in menu ipcRenderer.send('menu-update', { - contacts: JSON.stringify(self.memberList), + contacts: JSON.stringify(self.memberList.filter(e => helper.isContact(e))), cookies: await helper.getCookie(), }); }