mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-08 15:20:55 +00:00
4.20.84
* Fixed: Case-sensitive blocked terms not functioning correctly. * Fixed: Settings in the FFZ Control Center not reverting to a default appearance when reset. * Fixed: Current Channel and Channel Color not being properly detected in the mod view, channel pages, and dashboard. * Fixed: The channel points reward queue not functioning correctly. * Changed: Allow highlighting and blocking by add-on badge, not just Twitch badge. * Changed: Don't allocate `user.badges` and `user.emote_sets` until they're actually used to save on memory. * Changed: Don't default the `Chat > Bits and Cheering >> Display animated cheers.` setting to the `Animated Emotes` setting. * API Added: `badges.setBulk`, `badges.deleteBulk`, and `badges.extendBulk` for setting badges on users in bulk using an optimized data structure. * API Added: Tokenizers can set `msg.ffz_halt_tokens = true` to prevent further tokenizers running. Useful when just discarding a message.
This commit is contained in:
parent
a8b28b2d27
commit
1cdff0ec67
31 changed files with 533 additions and 1158 deletions
|
@ -20,7 +20,7 @@ export default class Room {
|
|||
this.refs = new Set;
|
||||
this.style = new ManagedStyle(`room--${login}`);
|
||||
|
||||
this.emote_sets = new SourcedSet;
|
||||
this.emote_sets = null; // new SourcedSet;
|
||||
this.badges = null;
|
||||
this.users = {};
|
||||
this.user_ids = {};
|
||||
|
@ -305,9 +305,11 @@ export default class Room {
|
|||
|
||||
this.data = d;
|
||||
|
||||
if ( d.set )
|
||||
if ( d.set ) {
|
||||
if ( ! this.emote_sets )
|
||||
this.emote_sets = new SourcedSet;
|
||||
this.emote_sets.set('main', d.set);
|
||||
else
|
||||
} else if ( this.emote_sets )
|
||||
this.emote_sets.delete('main');
|
||||
|
||||
|
||||
|
@ -342,6 +344,9 @@ export default class Room {
|
|||
if ( this.destroyed )
|
||||
return;
|
||||
|
||||
if ( ! this.emote_sets )
|
||||
this.emote_sets = new SourcedSet;
|
||||
|
||||
let changed = false;
|
||||
if ( ! this.emote_sets.sourceIncludes(provider, set_id) ) {
|
||||
this.emote_sets.push(provider, set_id);
|
||||
|
@ -357,7 +362,7 @@ export default class Room {
|
|||
}
|
||||
|
||||
removeSet(provider, set_id) {
|
||||
if ( this.destroyed )
|
||||
if ( this.destroyed || ! this.emote_sets )
|
||||
return;
|
||||
|
||||
if ( this.emote_sets.sourceIncludes(provider, set_id) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue