add back way to remove existing nickname set for a user

pull/1380/head
Audric Ackermann 5 years ago
parent 1f9aff5d1d
commit 599b2e6555
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -626,6 +626,9 @@
onInviteContacts: () => { onInviteContacts: () => {
window.Whisper.events.trigger('inviteContacts', this); window.Whisper.events.trigger('inviteContacts', this);
}, },
onClearNickname: () => {
this.setLokiProfile({ displayName: null });
},
}; };
return result; return result;

@ -64,6 +64,7 @@ type PropsHousekeeping = {
onCopyPublicKey?: () => void; onCopyPublicKey?: () => void;
onUnblockContact?: () => void; onUnblockContact?: () => void;
onInviteContacts?: () => void; onInviteContacts?: () => void;
onClearNickname?: () => void;
}; };
type Props = PropsData & PropsHousekeeping; type Props = PropsData & PropsHousekeeping;
@ -199,14 +200,14 @@ export class ConversationListItem extends React.PureComponent<Props> {
{i18n('changeNickname')} {i18n('changeNickname')}
</MenuItem> </MenuItem>
) : null} */} ) : null} */}
{ /* getClearNicknameMenuItem( { getClearNicknameMenuItem(
isPublic, isPublic,
isRss, isRss,
isMe, isMe,
hasNickname, hasNickname,
onClearNickname, onClearNickname,
i18n i18n
) */} ) }
{getCopyIdMenuItem( {getCopyIdMenuItem(
isPublic, isPublic,
isRss, isRss,

Loading…
Cancel
Save