From 3d4b4f62253049feb5b7bf43a8f9a44b5d378225 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Fri, 31 Mar 2023 23:15:49 -0400 Subject: [PATCH] 4.45.1 * Fixed: Performance regression due to WYSIWYG emote preview injection. This may result in the feature working less effectively while a better solution is found. --- package.json | 2 +- src/sites/twitch-twilight/modules/chat/input.jsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1ffc8884..d457a550 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.45.0", + "version": "4.45.1", "description": "FrankerFaceZ is a Twitch enhancement suite.", "private": true, "license": "Apache-2.0", diff --git a/src/sites/twitch-twilight/modules/chat/input.jsx b/src/sites/twitch-twilight/modules/chat/input.jsx index 00b5ccfa..3d4ae186 100644 --- a/src/sites/twitch-twilight/modules/chat/input.jsx +++ b/src/sites/twitch-twilight/modules/chat/input.jsx @@ -532,8 +532,9 @@ export default class Input extends Module { else return; - // Make a copy, so that React reacts. - this.props.emotes = [...this.props.emotes]; + // TODO: Somehow update other React state to deal with our + // injected changes. Making a shallow copy of the array + // runs too frequently. } inst.componentDidUpdate = function(props, ...args) {