From a452fefea3bddec3d37dba5dc10e5db15cff2180 Mon Sep 17 00:00:00 2001 From: Gabriel Duarte Date: Fri, 25 Sep 2020 02:28:48 +0200 Subject: [PATCH] fix an attempt to call the new render when theres no from on the message When the message has no `from` on it, the new render crashes when it tries to get the colors to render the message, and because of that, we shouldn't try to run ffz's render closes #904 --- src/sites/twitch-twilight/modules/chat/line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sites/twitch-twilight/modules/chat/line.js b/src/sites/twitch-twilight/modules/chat/line.js index 863b0a48..4307a4f3 100644 --- a/src/sites/twitch-twilight/modules/chat/line.js +++ b/src/sites/twitch-twilight/modules/chat/line.js @@ -178,7 +178,7 @@ export default class ChatLine extends Module { cls.prototype.render = function() { this._ffz_no_scan = true; - if ( ! this.props.message || ! this.props.message.content ) + if ( ! this.props.message || ! this.props.message.content || ! this.props.message.from ) return old_render.call(this); const msg = t.chat.standardizeWhisper(this.props.message),