Fix memory leak around emojis on server render (#2674)

This commit is contained in:
Anon 2024-08-27 12:10:19 -05:00 committed by GitHub
parent f456610930
commit d69dd1531b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,6 +252,7 @@ export function setupEmojiDataModel(custom_emoji_views: CustomEmojiView[]) {
custom_emoji_views,
x => x.custom_emoji.category,
);
customEmojis.length = 0;
for (const [category, emojis] of Object.entries(groupedEmojis)) {
customEmojis.push({
id: category,