1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-08 23:30:53 +00:00
* Added: New UI for clearing FrankerFaceZ settings (Data Management > Storage).
* Fixed: Do not display duplicate bot badges in tool-tips when a bot has both a global bot badge and a channel-specific bot badge.
* Fixed: Do not add click URLs for FFZ badges to add-on badges.
* Fixed: Remove `debugger;` from automatic error reporting method.
* Fixed: IndexedDBProvider not synchronizing settings correctly.
* Fixed: Change a CSS class name used when changing emote visibility to avoid bad UX due to misbehaving third-party extensions.
* Fixed: Color calculations for chat messages, including highlight colors. (Closes #947)
* Changed: Use rounded images from the CDN for FFZ badges in tool-tips.
* Changed: Use Twitch IDs rather than usernames for assigning channel-specific badges to users.
* API Added: `settings.addClearable(key, definition)` for adding new UI to `Data Management > Storage >> Clear`.
This commit is contained in:
SirStendec 2020-12-01 18:19:17 -05:00
parent 7adee6556c
commit ef4ff0c13a
15 changed files with 394 additions and 27 deletions

View file

@ -276,6 +276,13 @@ export default class Room {
return false;
}
const old_badges = this.data?.user_badge_ids;
if ( old_badges )
for(const badge_id in old_badges )
if ( has(old_badges, badge_id) )
for(const user of old_badges[badge_id])
this.getUser(user, undefined).removeBadge('ffz', badge_id);
const d = data.room,
id = `${d.twitch_id}`;
@ -306,14 +313,12 @@ export default class Room {
if ( has(data.sets, set_id) )
this.manager.emotes.loadSetData(set_id, data.sets[set_id]);
const badges = d.user_badges;
const badges = d.user_badge_ids;
if ( badges )
for(const badge_id in badges)
if ( has(badges, badge_id) )
for(const user of badges[badge_id])
this.getUser(undefined, user).addBadge('ffz', badge_id);
this.getUser(user, undefined).addBadge('ffz', badge_id);
if ( d.css )
this.style.set('css', d.css);