allow inserting multiple parts at a position

This commit is contained in:
Bruno Windels
2019-08-22 13:33:20 +01:00
parent ce44c651d0
commit 10c218825b
2 changed files with 11 additions and 5 deletions
@@ -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;
}
}