1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00
* Fixed: Reduce the amount of re-rendering that happens when a mass gift sub happens in chat.
* Fixed: Do not display stream latency metadata when watching non-live content.
* Fixed: Add support for user name overrides to clips and video chat.
* Fixed: Badge tooltips on the clips subdomain.
* API Added: `ffz_user_class`, `ffz_user_props`, and `ffz_user_style` on chat messages for customizing the display of usernames on messages in chat.
This commit is contained in:
SirStendec 2021-12-28 13:46:26 -05:00
parent 425276ed08
commit dfb16c8483
7 changed files with 108 additions and 26 deletions

View file

@ -2010,6 +2010,21 @@ export default class ChatHook extends Module {
}
scheduleMystery(mystery) { // eslint-disable-line class-methods-use-this
if ( ! mystery.line )
return;
if ( mystery._timer )
return;
mystery._timer = setTimeout(() => requestAnimationFrame(() => {
mystery._timer = null;
if ( mystery.line )
mystery.line.forceUpdate();
}), 250);
}
wrapChatService(cls) {
const t = this,
old_mount = cls.prototype.componentDidMount,
@ -2213,7 +2228,7 @@ export default class ChatHook extends Module {
mysteries[key] = null;
if ( mystery.line )
mystery.line.forceUpdate();
t.scheduleMystery(mystery);
return;
}
@ -2265,7 +2280,7 @@ export default class ChatHook extends Module {
mysteries[key] = null;
if ( mystery.line )
mystery.line.forceUpdate();
t.scheduleMystery(mystery);
return;
}