1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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