@ -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;