1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

allow inserting multiple parts at a position

This commit is contained in:
Bruno Windels
2019-08-20 12:36:05 +02:00
parent ce44c651d0
commit 10c218825b
2 changed files with 11 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ export default class SendMessageComposer extends React.Component {
const displayName = member ?
member.rawDisplayName : payload.user_id;
const userPillPart = this.model.partCreator.userPill(displayName, userId);
this.model.insertPartAt(userPillPart, this._editorRef.getCaret());
this.model.insertPartsAt([userPillPart], this._editorRef.getCaret());
break;
}
}