use mxid for user pill in command

This commit is contained in:
Bruno Windels 2019-09-25 17:30:12 +02:00
parent c760ba0839
commit 0bbbb5e336

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);