mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 01:56:55 +00:00
Start using SourcedSet for emoticon sets so that, in the future, special events, featured channels, etc. can add and remove emote sets without worrying about reference counting or anything like that. Also implement the method to get your Twitch Inventory emote sets.
This commit is contained in:
parent
bd518aea01
commit
3607159929
5 changed files with 172 additions and 33 deletions
|
@ -9,7 +9,7 @@ const WEBKIT = IS_WEBKIT ? '-webkit-' : '';
|
|||
|
||||
import Module from 'utilities/module';
|
||||
import {createElement, ManagedStyle} from 'utilities/dom';
|
||||
import {timeout, has} from 'utilities/object';
|
||||
import {timeout, has, SourcedSet} from 'utilities/object';
|
||||
|
||||
import Badges from './badges';
|
||||
import Emotes from './emotes';
|
||||
|
@ -283,7 +283,7 @@ export default class Chat extends Module {
|
|||
return null;
|
||||
|
||||
else
|
||||
user = {id, login, badges: [], emote_sets: []};
|
||||
user = {id, login, badges: [], emote_sets: new SourcedSet};
|
||||
|
||||
if ( id && id !== user.id ) {
|
||||
// If the ID isn't what we expected, something is very wrong here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue