Added "Show original" in Message controls Actions Menu

This commit is contained in:
debba 2020-04-24 09:47:05 +02:00 committed by Ben Gotow
parent c394dc808f
commit 01765c47da
2 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View file

@ -72,3 +72,4 @@ client_secret.json
**.bin
**.tar.gz
/app/mailsync.dSYM
.idea

View file

@ -41,13 +41,18 @@ export default class MessageControls extends React.Component<MessageControlsProp
select: this._onForward,
};
const showOriginal = {
name: localized('Show Original'),
select: this._onShowOriginal,
};
if (!this.props.message.canReplyAll()) {
return [reply, forward];
return [reply, forward, showOriginal];
}
const defaultReplyType = AppEnv.config.get('core.sending.defaultReplyType');
return defaultReplyType === 'reply-all'
? [replyAll, reply, forward]
: [reply, replyAll, forward];
? [replyAll, reply, forward, showOriginal]
: [reply, replyAll, forward, showOriginal];
}
_dropdownMenu(items) {