use mxid for user pill in command

pull/21833/head
Bruno Windels 2019-09-25 17:30:12 +02:00
parent c760ba0839
commit 0bbbb5e336
1 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,10 @@ export default class SendMessageComposer extends React.Component {
async _runSlashCommand() {
const commandText = this.model.parts.reduce((text, part) => {
// use mxid to textify user pills in a command
if (part.type === "user-pill") {
return text + part.resourceId;
}
return text + part.text;
}, "");
const cmd = processCommandInput(this.props.room.roomId, commandText);