1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 10:06:54 +00:00

Make changes to how forceUpdate() is called to hopefully reduce errors with React being stupid and not understanding how the DOM works. Also don't display an empty message for a resub with no attached message.

This commit is contained in:
SirStendec 2018-03-01 04:13:52 -05:00
parent 67053e3804
commit fb1ea38f1b
6 changed files with 29 additions and 12 deletions

View file

@ -435,6 +435,9 @@ export default class Chat extends Module {
if ( msg.sender && ! msg.user )
msg.user = msg.sender;
if ( ! msg.message )
return [];
let tokens = [{type: 'text', text: msg.message}];
if ( ! tokens[0].text )
return tokens;