1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-23 06:20:54 +00:00
This update includes a dependency update to version 2 of PopperJS, the library we use for tool-tips. Hopefully this fixes flickering issues with tool-tips. Some tool-tips may have issues after the update. If something doesn't look right, please ask.

* Fixed: Chat lines not showing replies.
* API Fixed: `setChildren` now supports variables that are not `Node`s or `string`s, and does so by casting other types to `string`s. Makes it easy to include numbers and other variables when using JSX.
* Maintenance: Update to PopperJS v2.
This commit is contained in:
SirStendec 2021-11-10 18:27:52 -05:00
parent 1c3e73e143
commit 958a3956f1
12 changed files with 107 additions and 79 deletions

View file

@ -432,7 +432,7 @@ other {# messages were deleted by a moderator.}
const u = t.site.getUser(),
r = {id: room_id, login: room};
const has_replies = this.chatRepliesTreatment ? this.chatRepliesTreatment !== 'control' : false,
const has_replies = this.props && !!(this.props.hasReply || this.props.reply || ! this.props.replyRestrictedReason),
can_replies = has_replies && msg.message && ! msg.deleted && ! this.props.disableReplyClick,
can_reply = can_replies && u && u.login !== msg.user?.login && ! msg.reply,
twitch_clickable = reply_mode === 1 && can_replies && (!!msg.reply || can_reply);