1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-09 15:50:53 +00:00

Fix rendering of chat action messages. (msg.type is now msg.messageType because Twitch). Remove debug logging from channel_bar.

This commit is contained in:
SirStendec 2018-02-27 01:41:19 -05:00
parent eb967e115f
commit f2479495ce
3 changed files with 2 additions and 3 deletions

View file

@ -22,7 +22,6 @@ export default class ChannelBar extends Module {
this.apollo.registerModifier('ChannelPage_ChannelInfoBar_User', CHANNEL_QUERY); this.apollo.registerModifier('ChannelPage_ChannelInfoBar_User', CHANNEL_QUERY);
this.apollo.registerModifier('ChannelPage_ChannelInfoBar_User', data => { this.apollo.registerModifier('ChannelPage_ChannelInfoBar_User', data => {
console.log('BOOP BOOP A DOOP', data);
const u = data && data.data && data.data.user; const u = data && data.data && data.data.user;
if ( u ) { if ( u ) {
const o = u.profileViewCount = new Number(u.profileViewCount || 0); const o = u.profileViewCount = new Number(u.profileViewCount || 0);

View file

@ -487,7 +487,7 @@ export default class ChatHook extends Module {
if ( u ) if ( u )
e.emotes = u.emotes; e.emotes = u.emotes;
if ( original.action ) if ( typeof original.action === 'string' )
e.message = original.action; e.message = original.action;
else else
e.message = original.message.body; e.message = original.message.body;

View file

@ -69,7 +69,7 @@ export default class ChatLine extends Module {
const types = t.parent.chat_types || {}, const types = t.parent.chat_types || {},
msg = this.props.message, msg = this.props.message,
is_action = msg.type === types.Action; is_action = msg.messageType === types.Action;
if ( msg.content && ! msg.message ) if ( msg.content && ! msg.message )
msg.message = msg.content.text; msg.message = msg.content.text;