mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix an issue with Raven erroring when error reporting is disabled.
Fix an error with featured emote sets when a room does not exist or is being destroyed. Fix an error with the host menu when autohost settings failed to load.
This commit is contained in:
parent
dcb1ab9a7f
commit
730e2129e9
5 changed files with 21 additions and 9 deletions
|
@ -128,10 +128,13 @@ export default class Emotes extends Module {
|
|||
updateFollowSets(data) {
|
||||
for(const room_login in data)
|
||||
if ( has(data, room_login) ) {
|
||||
const room = this.parent.getRoom(null, room_login, true),
|
||||
new_sets = data[room_login] || [],
|
||||
const room = this.parent.getRoom(null, room_login, true);
|
||||
if ( ! room || room.destroyed )
|
||||
continue;
|
||||
|
||||
const new_sets = data[room_login] || [],
|
||||
emote_sets = room.emote_sets,
|
||||
providers = emote_sets._sources;
|
||||
providers = emote_sets && emote_sets._sources;
|
||||
|
||||
if ( providers && providers.has('featured') )
|
||||
for(const item of providers.get('featured')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue