diff --git a/package.json b/package.json index 9858397d..1ae8d958 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.35.0", + "version": "4.35.1", "description": "FrankerFaceZ is a Twitch enhancement suite.", "private": true, "license": "Apache-2.0", diff --git a/src/sites/twitch-twilight/modules/video_chat/index.jsx b/src/sites/twitch-twilight/modules/video_chat/index.jsx index 2be10899..f951bf92 100644 --- a/src/sites/twitch-twilight/modules/video_chat/index.jsx +++ b/src/sites/twitch-twilight/modules/video_chat/index.jsx @@ -53,7 +53,7 @@ export default class VideoChatHook extends Module { this.VideoChatController = this.fine.define( 'video-chat-controller', - n => n.onMessageScrollAreaMount && n.createReply, + n => n.onMessageScrollAreaMount && n.focusedCommentCallback, ['user-video', 'user-clip', 'video'] ); @@ -65,7 +65,7 @@ export default class VideoChatHook extends Module { this.VideoChatLine = this.fine.define( 'video-chat-line', - n => n.onReplyClickHandler && n.shouldFocusMessage, + n => n.onTimestampClickHandler && n.shouldFocusMessage, ['user-video', 'user-clip', 'video'] ); @@ -127,63 +127,6 @@ export default class VideoChatHook extends Module { if ( ! React ) return; - /*this.MessageMenu = class FFZMessageMenu extends React.Component { - constructor(props) { - super(props); - - this.onClick = () => this.setState({open: ! this.state.open}); - this.onClickOutside = () => this.state.open && this.setState({open: false}); - - this.element = null; - this.saveRef = element => this.element = element; - - this.state = { - open: false - } - } - - componentDidMount() { - if ( this.element ) - this._clicker = new ClickOutside(this.element, this.onClickOutside); - } - - componentWillUnmount() { - this._clicker.destroy(); - this._clicker = null; - } - - render() { - const is_open = this.state.open; - - return (