fix: #10115, fix chat autocomplete hook

This commit is contained in:
Barış Soner Uşaklı
2022-01-02 15:13:30 -05:00
parent bec0ef8995
commit 69a7634a78

View File

@@ -367,7 +367,7 @@ define('forum/chats', [
}, },
}; };
hooks.fire('chat:autocomplete:init', data); $(window).trigger('chat:autocomplete:init', data);
if (data.strategies.length) { if (data.strategies.length) {
autocomplete.setup(data); autocomplete.setup(data);
} }