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:
parent
7c7851f4d4
commit
90dc8c8ad4
1 changed files with 2 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue