There was an error while loading. Please reload this page.
1 parent a58b1e9 commit 881307eCopy full SHA for 881307e
src/editor/parts.ts
@@ -651,10 +651,10 @@ export class PartCreator {
651
userId: string,
652
): [UserPillPart, PlainPart] {
653
const pill = this.userPill(displayName, userId);
654
- const postfix = this.plain(
655
- insertTrailingCharacter &&
656
- (SettingsStore.getValue("MessageComposerInput.insertTrailingComma") ? ": " : " "),
657
- );
+ if (!SettingsStore.getValue("MessageComposerInput.insertTrailingComma")) {
+ insertTrailingCharacter = false;
+ }
+ const postfix = this.plain(insertTrailingCharacter ? ": " : " ");
658
return [pill, postfix];
659
}
660
0 commit comments