allow inserting multiple parts at a position
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue