aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pronoundb/pronoundbUtils.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-04-12 23:22:38 -0300
committerGitHub <noreply@github.com>2023-04-13 04:22:38 +0200
commite34da54271ed8027d337a484f0ec00749c71a53b (patch)
tree7d0e15f471bf1000ab7eb552350dff8648de0f05 /src/plugins/pronoundb/pronoundbUtils.ts
parentcfe41ef656085e3b3ed2e0ac68020b546045b55b (diff)
downloadVencord-e34da54271ed8027d337a484f0ec00749c71a53b.tar.gz
Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.tar.bz2
Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.zip
Option to transform emotes/stickers in compound messages (#876)
+ ContextMenu refactor to not call callbacks for same children multiple times Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/pronoundb/pronoundbUtils.ts')
-rw-r--r--src/plugins/pronoundb/pronoundbUtils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/pronoundb/pronoundbUtils.ts b/src/plugins/pronoundb/pronoundbUtils.ts
index 0884261..c2354c3 100644
--- a/src/plugins/pronoundb/pronoundbUtils.ts
+++ b/src/plugins/pronoundb/pronoundbUtils.ts
@@ -35,7 +35,7 @@ const bulkFetch = debounce(async () => {
const pronouns = await bulkFetchPronouns(ids);
for (const id of ids) {
// Call all callbacks for the id
- requestQueue[id].forEach(c => c(pronouns[id]));
+ requestQueue[id]?.forEach(c => c(pronouns[id]));
delete requestQueue[id];
}
});