diff --git a/ui/mod/src/mod.inquiry.ts b/ui/mod/src/mod.inquiry.ts index 548b8162d0c8c..893c9c9674b40 100644 --- a/ui/mod/src/mod.inquiry.ts +++ b/ui/mod/src/mod.inquiry.ts @@ -4,6 +4,7 @@ import { expandMentions } from 'common/richText'; import { storage } from 'common/storage'; import { alert } from 'common/dialog'; import { highlightSearchTerm } from 'common/highlight'; +import { pubsub } from 'common/pubsub'; site.load.then(() => { const noteStore = storage.make('inquiry-note'); @@ -116,5 +117,7 @@ site.load.then(() => { addToNote(`Alt: @${username}`); }); - setTimeout(() => highlightSearchTerm(username, '#main-wrap .user-link'), 500); + const highlightUsername = () => highlightSearchTerm(username, '#main-wrap .user-link'); + setTimeout(highlightUsername, 300); + pubsub.on('content-loaded', highlightUsername); });