diff --git a/src/main.js b/src/main.js index 2738d8db..a77daaf0 100644 --- a/src/main.js +++ b/src/main.js @@ -100,7 +100,7 @@ class FrankerFaceZ extends Module { FrankerFaceZ.Logger = Logger; const VER = FrankerFaceZ.version_info = { - major: 4, minor: 0, revision: 0, extra: '-rc12.15', + major: 4, minor: 0, revision: 0, extra: '-rc12.16', commit: __git_commit__, build: __webpack_hash__, toString: () => diff --git a/src/sites/twitch-twilight/modules/chat/emote_menu.jsx b/src/sites/twitch-twilight/modules/chat/emote_menu.jsx index 5dbd37bd..ccf0b487 100644 --- a/src/sites/twitch-twilight/modules/chat/emote_menu.jsx +++ b/src/sites/twitch-twilight/modules/chat/emote_menu.jsx @@ -781,7 +781,8 @@ export default class EmoteMenu extends Module { observeSoon() { requestAnimationFrame(() => { - this.handleObserve(this.observer.takeRecords()); + if ( this.observer ) + this.handleObserve(this.observer.takeRecords()); }); } diff --git a/src/sites/twitch-twilight/modules/chat/index.js b/src/sites/twitch-twilight/modules/chat/index.js index 8576d916..6e9cd147 100644 --- a/src/sites/twitch-twilight/modules/chat/index.js +++ b/src/sites/twitch-twilight/modules/chat/index.js @@ -603,7 +603,7 @@ export default class ChatHook extends Module { } else if ( msg.type === types.Moderation ) { const login = msg.userLogin; - if ( this.moderatedUsers.has(login) ) + if ( inst.moderatedUsers.has(login) ) return; const do_remove = t.chat.context.get('chat.filtering.remove-deleted') === 3, @@ -644,11 +644,12 @@ export default class ChatHook extends Module { } } catch(err) { + t.log.error('Error processing chat event.', err); t.log.capture(err, {extra: {msg}}); } } - return old_handle.call(this, msg); + return old_handle.call(inst, msg); } inst.getMessages = function() { diff --git a/src/sites/twitch-twilight/modules/directory/followed_hosts.gql b/src/sites/twitch-twilight/modules/directory/followed_hosts.gql index 0bd303b1..e6c12ffd 100644 --- a/src/sites/twitch-twilight/modules/directory/followed_hosts.gql +++ b/src/sites/twitch-twilight/modules/directory/followed_hosts.gql @@ -4,7 +4,6 @@ query { nodes { profileImageURL(width: 50) hosting { - profileImageURL(width: 50) stream { createdAt } diff --git a/src/sites/twitch-twilight/modules/directory/followed_index.gql b/src/sites/twitch-twilight/modules/directory/followed_index.gql index ef13ca6b..0dd90430 100644 --- a/src/sites/twitch-twilight/modules/directory/followed_index.gql +++ b/src/sites/twitch-twilight/modules/directory/followed_index.gql @@ -7,17 +7,5 @@ query { } } } - followedHosts { - nodes { - profileImageURL(width: 50) - hosting { - profileImageURL(width: 50) - stream { - createdAt - type - } - } - } - } } } \ No newline at end of file