Merge pull request #3375 from matrix-org/bwindels/cider-colononmention
New composer: share user pill postfix between autocomplete and insert mention
This commit is contained in:
commit
c4d7df768d
3 changed files with 10 additions and 5 deletions
|
@ -442,6 +442,12 @@ export class PartCreator {
|
|||
const member = this._room.getMember(userId);
|
||||
return new UserPillPart(userId, displayName, member);
|
||||
}
|
||||
|
||||
createMentionParts(partIndex, displayName, userId) {
|
||||
const pill = this.userPill(displayName, userId);
|
||||
const postfix = this.plain(partIndex === 0 ? ": " : " ");
|
||||
return [pill, postfix];
|
||||
}
|
||||
}
|
||||
|
||||
// part creator that support auto complete for /commands,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue