1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00
* 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.
This commit is contained in:
SirStendec 2023-06-12 17:26:08 -04:00
parent c4b16a4910
commit eea9d51bdc
2 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "frankerfacez", "name": "frankerfacez",
"author": "Dan Salvato LLC", "author": "Dan Salvato LLC",
"version": "4.48.0", "version": "4.48.1",
"description": "FrankerFaceZ is a Twitch enhancement suite.", "description": "FrankerFaceZ is a Twitch enhancement suite.",
"private": true, "private": true,
"license": "Apache-2.0", "license": "Apache-2.0",

View file

@ -192,7 +192,7 @@ export default class ChatHook extends Module {
this.ChatService = this.fine.define( this.ChatService = this.fine.define(
'chat-service', 'chat-service',
n => n.join && n.connectHandlers, n => n.join && n.client && n.props.setChatConnectionAPI,
Twilight.CHAT_ROUTES Twilight.CHAT_ROUTES
); );
@ -1251,7 +1251,7 @@ export default class ChatHook extends Module {
if ( state ) if ( state )
this.updateChatState(state); this.updateChatState(state);
inst.connectHandlers(); inst.addEventListeners();
inst.props.setChatConnectionAPI({ inst.props.setChatConnectionAPI({
sendMessage: inst.sendMessage, sendMessage: inst.sendMessage,
@ -2209,7 +2209,7 @@ export default class ChatHook extends Module {
wrapChatService(cls) { wrapChatService(cls) {
const t = this, const t = this,
old_mount = cls.prototype.componentDidMount, old_mount = cls.prototype.componentDidMount,
old_handler = cls.prototype.connectHandlers; old_handler = cls.prototype.addEventListeners;
cls.prototype._ffz_was_here = true; 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 ) { if ( ! this._ffz_init ) {
const i = this; const i = this;