From 5e1839085877a67fb76a158eff99f3c94877b475 Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Mon, 10 Jul 2023 08:27:53 +0000 Subject: [PATCH] [IMP] mail: add missing type def closes odoo/odoo#127868 Signed-off-by: Matthieu Stockbauer (tsm) --- addons/mail/static/src/utils/common/hooks.js | 1 + 1 file changed, 1 insertion(+) 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) {