Fix messages with emotes not being updated when emotes are disabled
This commit is contained in:
parent
cd81f925cb
commit
8827bdb8b0
|
@ -27,7 +27,7 @@ export default new class EmoteModule {
|
|||
this.enabledSetting = Settings.getSetting('emotes', 'default', 'enable');
|
||||
this.enabledSetting.on('setting-updated', event => {
|
||||
// Rerender all messages (or if we're disabling emotes, those that have emotes)
|
||||
for (const message of document.querySelectorAll(event.value ? '.message' : '.bd-emote-outer')) {
|
||||
for (const message of document.querySelectorAll(event.value ? '.message' : '.bd-emotewrapper')) {
|
||||
Reflection(event.value ? message : message.closest('.message')).forceUpdate();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue