From eea9d51bdc18c8df5c67f3ee931a6052f2749aac Mon Sep 17 00:00:00 2001 From: SirStendec Date: Mon, 12 Jun 2023 17:26:08 -0400 Subject: [PATCH] 4.48.1 * Fixed: Certain chat-related features no longer working due to a minor change in Twitch's JS application causing FrankerFaceZ to be unable to locate a core chat component. --- package.json | 2 +- src/sites/twitch-twilight/modules/chat/index.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 96d562e3..eac33ebc 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.48.0", + "version": "4.48.1", "description": "FrankerFaceZ is a Twitch enhancement suite.", "private": true, "license": "Apache-2.0", diff --git a/src/sites/twitch-twilight/modules/chat/index.js b/src/sites/twitch-twilight/modules/chat/index.js index a3b54e20..0ac7272d 100644 --- a/src/sites/twitch-twilight/modules/chat/index.js +++ b/src/sites/twitch-twilight/modules/chat/index.js @@ -192,7 +192,7 @@ export default class ChatHook extends Module { this.ChatService = this.fine.define( 'chat-service', - n => n.join && n.connectHandlers, + n => n.join && n.client && n.props.setChatConnectionAPI, Twilight.CHAT_ROUTES ); @@ -1251,7 +1251,7 @@ export default class ChatHook extends Module { if ( state ) this.updateChatState(state); - inst.connectHandlers(); + inst.addEventListeners(); inst.props.setChatConnectionAPI({ sendMessage: inst.sendMessage, @@ -2209,7 +2209,7 @@ export default class ChatHook extends Module { wrapChatService(cls) { const t = this, old_mount = cls.prototype.componentDidMount, - old_handler = cls.prototype.connectHandlers; + old_handler = cls.prototype.addEventListeners; cls.prototype._ffz_was_here = true; @@ -2295,7 +2295,7 @@ export default class ChatHook extends Module { } - cls.prototype.connectHandlers = function(...args) { + cls.prototype.addEventListeners = function(...args) { if ( ! this._ffz_init ) { const i = this;