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>
This commit is contained in:
BenyFilho 2025-10-07 16:25:48 -03:00 • committed by GitHub
commit 90dc8c8ad4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,14 +65,7 @@ exports.LoadUtils = () => {
} }
if (options.mentionedJidList) { if (options.mentionedJidList) {
options.mentionedJidList = await Promise.all( options.mentionedJidList = options.mentionedJidList.map((id) => window.Store.WidFactory.createWid(id));
options.mentionedJidList.map(async (id) => {
const wid = window.Store.WidFactory.createWid(id);
if (await window.Store.QueryExist(wid)) {
return wid;
}
})
);
options.mentionedJidList = options.mentionedJidList.filter(Boolean); options.mentionedJidList = options.mentionedJidList.filter(Boolean);
} }
@ -339,14 +332,7 @@ exports.LoadUtils = () => {
delete options.extraOptions; delete options.extraOptions;
if (options.mentionedJidList) { if (options.mentionedJidList) {
options.mentionedJidList = await Promise.all( options.mentionedJidList = options.mentionedJidList.map((id) => window.Store.WidFactory.createWid(id));
options.mentionedJidList.map(async (id) => {
const wid = window.Store.WidFactory.createWid(id);
if (await window.Store.QueryExist(wid)) {
return wid;
}
})
);
options.mentionedJidList = options.mentionedJidList.filter(Boolean); options.mentionedJidList = options.mentionedJidList.filter(Boolean);
} }