mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-10 08:10:52 +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:
parent
eb967e115f
commit
f2479495ce
3 changed files with 2 additions and 3 deletions
|
@ -22,7 +22,6 @@ export default class ChannelBar extends Module {
|
|||
|
||||
this.apollo.registerModifier('ChannelPage_ChannelInfoBar_User', CHANNEL_QUERY);
|
||||
this.apollo.registerModifier('ChannelPage_ChannelInfoBar_User', data => {
|
||||
console.log('BOOP BOOP A DOOP', data);
|
||||
const u = data && data.data && data.data.user;
|
||||
if ( u ) {
|
||||
const o = u.profileViewCount = new Number(u.profileViewCount || 0);
|
||||
|
|
|
@ -487,7 +487,7 @@ export default class ChatHook extends Module {
|
|||
if ( u )
|
||||
e.emotes = u.emotes;
|
||||
|
||||
if ( original.action )
|
||||
if ( typeof original.action === 'string' )
|
||||
e.message = original.action;
|
||||
else
|
||||
e.message = original.message.body;
|
||||
|
|
|
@ -69,7 +69,7 @@ export default class ChatLine extends Module {
|
|||
const types = t.parent.chat_types || {},
|
||||
|
||||
msg = this.props.message,
|
||||
is_action = msg.type === types.Action;
|
||||
is_action = msg.messageType === types.Action;
|
||||
|
||||
if ( msg.content && ! msg.message )
|
||||
msg.message = msg.content.text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue