mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
Fix bad ternary statement in autocomplete user pill insertions (#7977)
This commit is contained in:
parent
a58b1e9d79
commit
881307e97c
1 changed files with 4 additions and 4 deletions
|
@ -651,10 +651,10 @@ export class PartCreator {
|
|||
userId: string,
|
||||
): [UserPillPart, PlainPart] {
|
||||
const pill = this.userPill(displayName, userId);
|
||||
const postfix = this.plain(
|
||||
insertTrailingCharacter &&
|
||||
(SettingsStore.getValue("MessageComposerInput.insertTrailingComma") ? ": " : " "),
|
||||
);
|
||||
if (!SettingsStore.getValue("MessageComposerInput.insertTrailingComma")) {
|
||||
insertTrailingCharacter = false;
|
||||
}
|
||||
const postfix = this.plain(insertTrailingCharacter ? ": " : " ");
|
||||
return [pill, postfix];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue