Skip to content

Commit

Permalink
Merge ab4fec5 into ca27856
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong authored Sep 13, 2024
2 parents ca27856 + ab4fec5 commit 1864311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/model/contracts/shared/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ export function swapMentionIDForDisplayname (
}
): string {
const {
ourContactProfilesById,
getChatroomNameById,
usernameFromID,
userDisplayNameFromID
} = sbp('state/vuex/getters')
const { reverseNamespaceLookups } = sbp('state/vuex/state')
const possibleMentions = [
...Object.keys(ourContactProfilesById).map(u => makeMentionFromUserID(u).me).filter(v => !!v),
...Object.keys(reverseNamespaceLookups).map(u => makeMentionFromUserID(u).me).filter(v => !!v),
makeChannelMention('[^\\s]+', true) // chat-mention as contractID has a format of `#:chatID:...`. So target them as a pattern instead of the exact strings.
]

Expand Down

0 comments on commit 1864311

Please sign in to comment.