Fix bad ternary statement in autocomplete user pill insertions (#7977)
This commit is contained in:
+4
-4
@@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user