1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-31 06:58:30 +00:00
* Added: `Current Channel` rule for profiles, to match all pages associated with a certain channel without needing many page rules.
* Fixed: Unreadable text in light theme when importing a profile.
* Changed: Display a matching page URL in the `Current Page` rule for profiles.
* Changed: Do not display an inactive profile warning on the Add-Ons settings page, since those are not affected by profiles.
* Changed: Update Vue to a more recent version.
* Maintenance: Update the chat types enum based on the latest version of Twitch.
* API Added: `TwitchData` module (`site.twitch_data`) for querying Twitch's API for data.
This commit is contained in:
SirStendec 2019-06-14 21:24:48 -04:00
parent c34b7e30e2
commit 275248ca36
24 changed files with 819 additions and 88 deletions

View file

@ -110,7 +110,8 @@ const CHAT_TYPES = make_enum(
'AnonSubMysteryGift',
'FirstCheerMessage',
'BitsBadgeTierMessage',
'InlinePrivateCallout'
'InlinePrivateCallout',
'ChannelPointsReward'
);
@ -518,7 +519,7 @@ export default class ChatHook extends Module {
this.updateMentionCSS();
this.ChatController.on('mount', this.chatMounted, this);
this.ChatController.on('unmount', this.chatUmounted, this);
this.ChatController.on('unmount', this.chatUnmounted, this);
this.ChatController.on('receive-props', this.chatUpdated, this);
this.ChatService.ready((cls, instances) => {
@ -1565,6 +1566,12 @@ export default class ChatHook extends Module {
chatHidden: props.isHidden
});
if ( props.isEmbedded || props.isPopout )
this.settings.updateContext({
channel: props.channelLogin && props.channelLogin.toLowerCase(),
channelID: props.channelID
});
this.chat.context.updateContext({
moderator: props.isCurrentUserModerator,
channel: props.channelLogin && props.channelLogin.toLowerCase(),
@ -1576,10 +1583,22 @@ export default class ChatHook extends Module {
}
chatUmounted(chat) {
chatUnmounted(chat) {
if ( chat.chatBuffer && chat.chatBuffer.ffzController === this )
chat.chatBuffer.ffzController = null;
if ( chat.props.isEmbedded || chat.props.isPopout )
this.settings.updateContext({
channel: null,
channelID: null
});
this.chat.context.updateContext({
moderator: false,
channel: null,
channelID: null
});
this.removeRoom(chat);
}
@ -1600,6 +1619,12 @@ export default class ChatHook extends Module {
// TODO: Check if this is the room for the current channel.
if ( props.isEmbedded || props.isPopout )
this.settings.updateContext({
channel: props.channelLogin && props.channelLogin.toLowerCase(),
channelID: props.channelID
});
this.settings.updateContext({
moderator: props.isCurrentUserModerator,
chatHidden: props.isHidden