mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
exclude empty timestamp conversation from contacts list
This commit is contained in:
parent
c8241f47e6
commit
adb7234b43
2 changed files with 9 additions and 2 deletions
|
@ -15,7 +15,12 @@
|
|||
const convos = window.getConversations().models;
|
||||
|
||||
this.contacts = convos.filter(
|
||||
d => !!d && !d.isBlocked() && d.isPrivate() && !d.isMe()
|
||||
d =>
|
||||
!!d &&
|
||||
!d.isBlocked() &&
|
||||
d.isPrivate() &&
|
||||
!d.isMe() &&
|
||||
!!d.attributes.timestamp
|
||||
);
|
||||
if (!convo.isPublic()) {
|
||||
const members = convo.get('members') || [];
|
||||
|
|
|
@ -31,7 +31,9 @@ export class InviteContactsDialog extends React.Component<Props, State> {
|
|||
|
||||
contacts = contacts.map(d => {
|
||||
const lokiProfile = d.getLokiProfile();
|
||||
const name = lokiProfile ? lokiProfile.displayName : 'Anonymous';
|
||||
const name = lokiProfile
|
||||
? lokiProfile.displayName
|
||||
: window.i18n('anonymous');
|
||||
|
||||
// TODO: should take existing members into account
|
||||
const existingMember = false;
|
||||
|
|
Loading…
Reference in a new issue