diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 0a98e8821b..3abff39652 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -621,6 +621,7 @@ module.exports = withMatrixClient(React.createClass({ const member = this.props.member; let ignoreButton = null; + let insertPillButton = null; let inviteUserButton = null; let readReceiptButton = null; @@ -646,11 +647,24 @@ module.exports = withMatrixClient(React.createClass({ }); }; + const onInsertPillButton = function() { + dis.dispatch({ + action: 'insert_mention', + user_id: member.userId, + }); + }; + readReceiptButton = ( { _t('Jump to read receipt') } ); + + insertPillButton = ( + + { _t('Mention') } + + ); } if (!member || !member.membership || member.membership === 'leave') { @@ -675,13 +689,14 @@ module.exports = withMatrixClient(React.createClass({ } } - if (!ignoreButton && !readReceiptButton && !inviteUserButton) return null; + if (!ignoreButton && !readReceiptButton && !insertPillButton && !inviteUserButton) return null; return (

{ _t("User Options") }

{ readReceiptButton } + { insertPillButton } { ignoreButton } { inviteUserButton }
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 5ea42021dd..a541e9e130 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -152,6 +152,7 @@ "%(widgetName)s widget removed by %(senderName)s": "%(widgetName)s widget removed by %(senderName)s", "Communities": "Communities", "Message Pinning": "Message Pinning", + "Mention": "Mention", "%(displayName)s is typing": "%(displayName)s is typing", "%(names)s and one other are typing": "%(names)s and one other are typing", "%(names)s and %(count)s others are typing|other": "%(names)s and %(count)s others are typing",