mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
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() {
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue