pull/253/head
Beaudan 6 years ago
parent d0d57ea8c7
commit 14367620d9

@ -1808,7 +1808,8 @@
},
"copiedMessage": {
"message": "Copied message text",
"description": "A toast message telling the user that the message text was copied"
"description":
"A toast message telling the user that the message text was copied"
},
"editDisplayName": {
"message": "Edit display name",

@ -624,13 +624,21 @@
});
Whisper.events.on('showToast', options => {
if (appView && appView.inboxView && appView.inboxView.conversation_stack) {
if (
appView &&
appView.inboxView &&
appView.inboxView.conversation_stack
) {
appView.inboxView.conversation_stack.showToast(options);
}
});
Whisper.events.on('showConfirmationDialog', options => {
if (appView && appView.inboxView && appView.inboxView.conversation_stack) {
if (
appView &&
appView.inboxView &&
appView.inboxView.conversation_stack
) {
appView.inboxView.conversation_stack.showConfirmationDialog(options);
}
});

@ -235,13 +235,13 @@
this.model.unblock();
},
onChangeNickname: () => {
this.model.changeNickname()
this.model.changeNickname();
},
onClearNickname: async () => {
this.model.setNickname(null);
},
onCopyPublicKey: () => {
this.model.copyPublicKey()
this.model.copyPublicKey();
},
};
};

@ -819,11 +819,7 @@ export class Message extends React.Component<Props, State> {
{i18n('downloadAttachment')}
</MenuItem>
) : null}
<MenuItem
onClick={onCopyText}
>
{i18n('copyMessage')}
</MenuItem>
<MenuItem onClick={onCopyText}>{i18n('copyMessage')}</MenuItem>
<MenuItem
attributes={{
className: 'module-message__context__reply',

Loading…
Cancel
Save