diff --git a/src/components/views/rooms/SendMessageComposer.js b/src/components/views/rooms/SendMessageComposer.js index 2717ff58c5..f477a6137d 100644 --- a/src/components/views/rooms/SendMessageComposer.js +++ b/src/components/views/rooms/SendMessageComposer.js @@ -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);