diff --git a/addons/mail/static/src/utils/common/hooks.js b/addons/mail/static/src/utils/common/hooks.js index ec2cc734b5f..0671ec83451 100644 --- a/addons/mail/static/src/utils/common/hooks.js +++ b/addons/mail/static/src/utils/common/hooks.js @@ -238,6 +238,7 @@ export function useScrollSnapshot(refName, { onWillPatch: p_onWillPatch, onPatch */ export function useMessageHighlight(duration = 2000) { let timeout; + /** @type {import("@mail/core/common/thread_service").ThreadService} */ const threadService = useService("mail.thread"); const state = useState({ async highlightMessage(msgId, thread) {