mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-30 14:38:31 +00:00
4.0.0-rc18
* Added: Reason context menus for in-line timeout and ban actions. * Fixed: Certain FFZ tool-tips using the wrong input handlers. * Fixed: Do not update CSS whenever bits configuration changes, only when necessary. (Performance fix for the bleed purple campaign.) * Changed: Mark certain page elements with a flag to avoid crawling them with MutationObservers. (More performance~~)
This commit is contained in:
parent
1649294bde
commit
23816fafc9
16 changed files with 464 additions and 36 deletions
|
@ -1504,6 +1504,7 @@ export default class ChatHook extends Module {
|
|||
if ( props.data ) {
|
||||
this.chat.badges.updateTwitchBadges(props.data.badges);
|
||||
this.updateRoomBadges(cont, props.data.user && props.data.user.broadcastBadges);
|
||||
this.updateRoomRules(cont, props.chatRules);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1533,6 +1534,8 @@ export default class ChatHook extends Module {
|
|||
|
||||
if ( cs.length !== ocs.length )
|
||||
this.updateRoomBadges(cont, cs);
|
||||
|
||||
this.updateRoomRules(cont, props.chatRules);
|
||||
}
|
||||
|
||||
updateRoomBadges(cont, badges) { // eslint-disable-line class-methods-use-this
|
||||
|
@ -1543,6 +1546,14 @@ export default class ChatHook extends Module {
|
|||
room.updateBadges(badges);
|
||||
this.updateChatLines();
|
||||
}
|
||||
|
||||
updateRoomRules(cont, rules) { // eslint-disable-line class-methods-use-this
|
||||
const room = cont._ffz_room;
|
||||
if ( ! room )
|
||||
return;
|
||||
|
||||
room.rules = rules;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue