diff --git a/package.json b/package.json index f1dcabf6..e2d0658c 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.17.6", + "version": "4.17.7", "description": "FrankerFaceZ is a Twitch enhancement suite.", "license": "Apache-2.0", "scripts": { diff --git a/src/raven.js b/src/raven.js index 67f093d6..04c8927e 100644 --- a/src/raven.js +++ b/src/raven.js @@ -216,6 +216,9 @@ export default class RavenLogger extends Module { if ( DEBUG ) return false; + if ( this.resolve('addons')?.has_dev ) + return false; + return true; } }; diff --git a/src/sites/twitch-twilight/modules/chat/emote_menu.jsx b/src/sites/twitch-twilight/modules/chat/emote_menu.jsx index 362bc3f2..c0976768 100644 --- a/src/sites/twitch-twilight/modules/chat/emote_menu.jsx +++ b/src/sites/twitch-twilight/modules/chat/emote_menu.jsx @@ -237,7 +237,8 @@ export default class EmoteMenu extends Module { this.on('chat.emotes:update-default-sets', this.maybeUpdate, this); this.on('chat.emotes:update-user-sets', this.maybeUpdate, this); this.on('chat.emotes:update-room-sets', this.maybeUpdate, this); - this.on('chat.emoji:populated', this.updateEmoji, this); + this.on('chat.emotes:change-favorite', this.maybeUpdate, this); + this.on('chat.emoji:populated', this.maybeUpdate, this); this.chat.context.on('changed:chat.emote-menu.enabled', () => this.EmoteMenu.forceUpdate()); @@ -245,13 +246,12 @@ export default class EmoteMenu extends Module { const fup = () => this.MenuWrapper.forceUpdate(); const rebuild = () => { for(const inst of this.MenuWrapper.instances) - inst.componentWillReceiveProps(inst.props); + inst.rebuildData(); } this.chat.context.on('changed:chat.fix-bad-emotes', rebuild); this.chat.context.on('changed:chat.emote-menu.sort-emotes', rebuild); this.chat.context.on('changed:chat.emote-menu.sort-tiers-last', rebuild); - this.chat.context.on('changed:chat.emote-menu.show-heading', fup); this.chat.context.on('changed:chat.emote-menu.show-search', fup); this.chat.context.on('changed:chat.emote-menu.reduced-padding', fup); @@ -333,16 +333,11 @@ export default class EmoteMenu extends Module { } maybeUpdate() { - if ( this.chat.context.get('chat.emote-menu.enabled') ) - this.EmoteMenu.forceUpdate(); - } + if ( ! this.chat.context.get('chat.emote-menu.enabled') ) + return; - updateFavorite() { - this.maybeUpdate(); - } - - updateEmoji() { - this.maybeUpdate(); + for(const inst of this.MenuWrapper.instances) + inst.rebuildData(); } @@ -395,6 +390,9 @@ export default class EmoteMenu extends Module { } renderTone(data, tone) { + if ( ! data ) + return null; + return (