use mxid for user pill in command
This commit is contained in:
parent
c760ba0839
commit
0bbbb5e336
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,10 @@ export default class SendMessageComposer extends React.Component {
|
||||||
|
|
||||||
async _runSlashCommand() {
|
async _runSlashCommand() {
|
||||||
const commandText = this.model.parts.reduce((text, part) => {
|
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;
|
return text + part.text;
|
||||||
}, "");
|
}, "");
|
||||||
const cmd = processCommandInput(this.props.room.roomId, commandText);
|
const cmd = processCommandInput(this.props.room.roomId, commandText);
|
||||||
|
|
Loading…
Reference in a new issue