Skip to content

Commit

Permalink
Fix mention style
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Oct 17, 2023
1 parent d8c6711 commit 16d9c41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ callbacks.add(
const { value: useRealName } = (await Settings.findOneById('UI_Use_Real_Name')) || {};

const usernamesOrNames = mentionsUsersNotInChannel.map(
({ username, name }) => `*@${getUserDisplayName(name, username, Boolean(useRealName))}*`,
({ username, name }) => `*${getUserDisplayName(name, username, Boolean(useRealName))}*`,
);

const mentionsText = usernamesOrNames.join(', ');
Expand Down
4 changes: 2 additions & 2 deletions apps/meteor/tests/e2e/message-mentions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ test.use({ storageState: Users.admin.state });

const getMentionText = (username: string, kind?: number): string => {
if (kind === 1) {
return `You mentioned @${username}, but they're not in this room.`;
return `You mentioned ${username}, but they're not in this room.`;
}
if (kind === 2) {
return `You mentioned @${username}, but they're not in this room. You can ask a room admin to add them.`;
return `You mentioned ${username}, but they're not in this room. You can ask a room admin to add them.`;
}
if (kind === 3) {
return `You mentioned ${username}, but they're not in this room. You let them know via DM.`;
Expand Down

0 comments on commit 16d9c41

Please sign in to comment.