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:
parent
472f9472ee
commit
a452fefea3
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue