share user pill postfix between autocomplete and insert mention
where we decide to add a colon only if the composer is empty
This commit is contained in:
parent
c219f925c6
commit
c595371845
3 changed files with 10 additions and 5 deletions
|
@ -106,9 +106,7 @@ export default class AutocompleteWrapperModel {
|
|||
if (completionId === "@room") {
|
||||
return [this._partCreator.atRoomPill(completionId)];
|
||||
} else {
|
||||
const pill = this._partCreator.userPill(text, completionId);
|
||||
const postfix = this._partCreator.plain(this._partIndex === 0 ? ": " : " ");
|
||||
return [pill, postfix];
|
||||
return this._partCreator.createMentionParts(this._partIndex, text, completionId);
|
||||
}
|
||||
}
|
||||
case "#":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue