From 90dc8c8ad4b9f0abf7d4417adeb65a006b691174 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Tue, 7 Oct 2025 16:25:48 -0300 Subject: [PATCH] Fix Mention in Large Groups (#3803) * Fix Mentioning in Large Groups * Update Utils.js * Update Utils.js --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/util/Injected/Utils.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index ee0553f..d0cd6c5 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -65,14 +65,7 @@ exports.LoadUtils = () => { } if (options.mentionedJidList) { - options.mentionedJidList = await Promise.all( - options.mentionedJidList.map(async (id) => { - const wid = window.Store.WidFactory.createWid(id); - if (await window.Store.QueryExist(wid)) { - return wid; - } - }) - ); + options.mentionedJidList = options.mentionedJidList.map((id) => window.Store.WidFactory.createWid(id)); options.mentionedJidList = options.mentionedJidList.filter(Boolean); } @@ -339,14 +332,7 @@ exports.LoadUtils = () => { delete options.extraOptions; if (options.mentionedJidList) { - options.mentionedJidList = await Promise.all( - options.mentionedJidList.map(async (id) => { - const wid = window.Store.WidFactory.createWid(id); - if (await window.Store.QueryExist(wid)) { - return wid; - } - }) - ); + options.mentionedJidList = options.mentionedJidList.map((id) => window.Store.WidFactory.createWid(id)); options.mentionedJidList = options.mentionedJidList.filter(Boolean); }