mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 02:16:54 +00:00
4.0.0-rc20.2
* Fixed: In-Line Chat Actions appearing when Visibilty: Mod Icons is set to True while in a channel where the user is not a moderator. * Fixed: When looking up badge data and data has not been pulled from chat yet, try pulling data from chat immediately.
This commit is contained in:
parent
76c2831882
commit
a64b3cff45
4 changed files with 18 additions and 1 deletions
|
@ -632,6 +632,12 @@ export default class Badges extends Module {
|
|||
const room = this.parent.getRoom(room_id, room_login, true);
|
||||
let b;
|
||||
|
||||
if ( (room && ! room.badges) || ! this.twitch_badges ) {
|
||||
const chat = this.resolve('site.chat');
|
||||
if ( chat && chat.tryUpdateBadges )
|
||||
chat.tryUpdateBadges();
|
||||
}
|
||||
|
||||
if ( room ) {
|
||||
const versions = room.badges && room.badges[badge];
|
||||
b = versions && versions[version];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue