Fix bad ternary statement in autocomplete user pill insertions (#7977)

pull/21833/head
Michael Telatynski 2022-03-04 14:01:07 +00:00 committed by GitHub
parent a58b1e9d79
commit 881307e97c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -651,10 +651,10 @@ export class PartCreator {
userId: string, userId: string,
): [UserPillPart, PlainPart] { ): [UserPillPart, PlainPart] {
const pill = this.userPill(displayName, userId); const pill = this.userPill(displayName, userId);
const postfix = this.plain( if (!SettingsStore.getValue("MessageComposerInput.insertTrailingComma")) {
insertTrailingCharacter && insertTrailingCharacter = false;
(SettingsStore.getValue("MessageComposerInput.insertTrailingComma") ? ": " : " "), }
); const postfix = this.plain(insertTrailingCharacter ? ": " : " ");
return [pill, postfix]; return [pill, postfix];
} }
} }