1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-08 15:20:55 +00:00
* Fixed: Bug with room API handling that prevented the application of channel-specific user badges.
* Fixed: Issue applying username color adjustments with certain background colors. (Closes #945)
* Fixed: Automatic Theater Mode applying incorrectly on user sub-pages. (Closes #942)
This commit is contained in:
SirStendec 2020-11-25 19:27:25 -05:00
parent 5e5b328076
commit b098e59f4c
4 changed files with 23 additions and 13 deletions

View file

@ -307,7 +307,7 @@ export default class Room {
this.manager.emotes.loadSetData(set_id, data.sets[set_id]);
const badges = data.user_badges;
const badges = d.user_badges;
if ( badges )
for(const badge_id in badges)
if ( has(badges, badge_id) )
@ -315,8 +315,8 @@ export default class Room {
this.getUser(undefined, user).addBadge('ffz', badge_id);
if ( data.css )
this.style.set('css', data.css);
if ( d.css )
this.style.set('css', d.css);
else
this.style.delete('css');