1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-25 12:08:30 +00:00

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
This commit is contained in:
Gabriel Duarte 2020-09-25 02:28:48 +02:00
parent 472f9472ee
commit a452fefea3

View file

@ -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),