Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
list contacts in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
trazyn committed Sep 19, 2017
1 parent d34636a commit b271239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/stores/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/stores/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
}
Expand Down Expand Up @@ -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(),
});
}
Expand Down

0 comments on commit b271239

Please sign in to comment.