1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-17 10:16:57 +00:00
* Added: Changelog for Add-Ons.
* Added: Option to disable the player running at a faster rate to reduce the buffer size.
* Changed: Stream Latency metadata now shows you when the player is running at a faster rate.
* Fixed: Formatting of tool-tips for metadata.
* Fixed: Metadata tool-tips not supporting rich children when updating.
* Fixed: Metadata icons not updating when changed dynamically.
* Fixed: The current channel's accent color not being detected in pop-out chat.
* Fixed: Styles not being applied correctly to deleted messages that are part of a channel points reward or part of a re-subscription notice.
* Removed: Support for Rooms messages.
* API Added: Settings now have an `onUIChanged` method that is called when a setting is changed by a UI control, allowing for immediate feedback.
* API Added: Built-in settings components now accept a `buttons` component that is rendered before the reset and profile override buttons.
This commit is contained in:
SirStendec 2019-11-14 19:52:35 -05:00
parent 8ac1b2ce91
commit 347919c51a
28 changed files with 335 additions and 83 deletions

View file

@ -47,11 +47,11 @@ export default class ChatLine extends Module {
Twilight.CHAT_ROUTES
);
this.ChatRoomLine = this.fine.define(
/*this.ChatRoomLine = this.fine.define(
'chat-room-line',
n => n.renderMessageBody && n.props && ! n.onExtensionNameClick && has(n.props, 'hasModPermissions'),
Twilight.CHAT_ROUTES
);
);*/
/*this.ChatRoomContainer = this.fine.define(
'chat-room-container',
@ -100,7 +100,7 @@ export default class ChatLine extends Module {
FFZRichContent = this.rich_content && this.rich_content.RichContent;
this.ChatRoomLine.ready(cls => {
/*this.ChatRoomLine.ready(cls => {
const old_render = cls.prototype.render;
cls.prototype.render = function() { try {
@ -212,7 +212,7 @@ export default class ChatLine extends Module {
// Do this after a short delay to hopefully reduce the chance of React
// freaking out on us.
setTimeout(() => this.ChatRoomLine.forceUpdate());
});
});*/
this.WhisperLine.ready(cls => {
@ -527,7 +527,7 @@ other {# messages were deleted by a moderator.}
}, the_list);
}
cls = 'user-notice-line tw-pd-y-05 ffz--subscribe-line';
cls = `user-notice-line tw-pd-y-05 ffz--subscribe-line${show_class ? ' ffz--deleted-message' : ''}`;
out = [
e('div', {
className: 'tw-flex tw-c-text-alt-2',
@ -590,7 +590,7 @@ other {# messages were deleted by a moderator.}
count: msg.sub_total
}));
cls = 'user-notice-line tw-pd-y-05 tw-pd-r-2 ffz--subscribe-line';
cls = `user-notice-line tw-pd-y-05 tw-pd-r-2 ffz--subscribe-line${show_class ? ' ffz--deleted-message' : ''}`;
out = [
e('div', {className: 'tw-flex tw-c-text-alt-2'}, [
t.chat.context.get('chat.subs.compact') ? null :
@ -652,7 +652,7 @@ other {# messages were deleted by a moderator.}
));
}
cls = 'user-notice-line tw-pd-y-05 tw-pd-r-2 ffz--subscribe-line';
cls = `user-notice-line tw-pd-y-05 tw-pd-r-2 ffz--subscribe-line${show_class ? ' ffz--deleted-message' : ''}`;
out = [
e('div', {className: 'tw-flex tw-c-text-alt-2'}, [
t.chat.context.get('chat.subs.compact') ? null :
@ -690,7 +690,7 @@ other {# messages were deleted by a moderator.}
]);
if ( system_msg ) {
cls = 'user-notice-line tw-pd-y-05 tw-pd-r-2 ffz--ritual-line';
cls = `user-notice-line tw-pd-y-05 tw-pd-r-2 ffz--ritual-line${show_class ? ' ffz--deleted-message' : ''}`;
out = [
system_msg,
out && e('div', {
@ -710,7 +710,7 @@ other {# messages were deleted by a moderator.}
t.i18n.formatNumber(getRewardCost(msg.ffz_reward))
]);
cls = `ffz--points-line tw-pd-l-1 tw-pd-y-05 tw-pd-r-2${isHighlightedReward(msg.ffz_reward) ? ' ffz--points-highlight' : ''}`;
cls = `ffz--points-line tw-pd-l-1 tw-pd-y-05 tw-pd-r-2${isHighlightedReward(msg.ffz_reward) ? ' ffz--points-highlight' : ''}${show_class ? ' ffz--deleted-message' : ''}`;
out = [
e('div', {className: 'tw-c-text-alt-2'}, [
out ? null : t.actions.renderInline(msg, this.props.showModerationIcons, u, r, e),
@ -872,13 +872,13 @@ other {# messages were deleted by a moderator.}
}
}
for(const inst of this.ChatRoomLine.instances) {
/*for(const inst of this.ChatRoomLine.instances) {
const msg = inst.props.message;
if ( msg ) {
msg.ffz_tokens = null;
msg.mentioned = msg.mention_color = null;
}
}
}*/
for(const inst of this.WhisperLine.instances) {
const msg = inst.props.message;
@ -888,7 +888,7 @@ other {# messages were deleted by a moderator.}
this.ChatLine.forceUpdate();
this.ExtensionLine.forceUpdate();
this.ChatRoomLine.forceUpdate();
//this.ChatRoomLine.forceUpdate();
this.WhisperLine.forceUpdate();
this.emit('chat:updated-lines');