1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-10 16:10:55 +00:00
* Added: Setting to change the height of chat actions.
* Added: Profiles can now be toggled via hotkey.
* Added: Profiles can now be imported from URL as well as File.
* Added: Profiles with update URLs can have automatic updates disabled.
* Fixed: Support for the `clips.twitch.tv` domain.
* Fixed: Badges that make use of foreground text are no longer white in light themes.
* Fixed: Mod Icons appearing smaller than normal.
* Changed: Allow several types of actions, unrelated to moderation, to be used on a person's own chat messages.
* Changed: Better warn users in the Control Center when the current profile is set to automatically update.
* Changed: Make the FFZ Control Center remember which profile is selected when re-opening / refreshing.
* API Added: Add-ons can now target specific supported flavors. Choices thus far are `main` and `clips`.
* API Added: The `site.menu_button` now has `addToast(...)` and can display multiple toasts. Toasts can also time out.
* API Fixed: `openFile(...)` never resolving if the user closes the dialog without selecting a file.
This commit is contained in:
SirStendec 2021-03-02 16:55:25 -05:00
parent 0d433c3ebd
commit 9086230686
61 changed files with 2267 additions and 222 deletions

View file

@ -77,7 +77,8 @@ export default class Room {
if ( this.manager.rooms[this._login] === this )
this.manager.rooms[this._login] = null;
this.manager.socket.unsubscribe(this, `room.${this.login}`);
if ( this.manager.socket )
this.manager.socket.unsubscribe(this, `room.${this.login}`);
}
if ( this.manager.room_ids[this._id] === this )
@ -158,7 +159,8 @@ export default class Room {
const old_room = this.manager.rooms[this._login];
if ( old_room === this ) {
this.manager.rooms[this._login] = null;
this.manager.socket.unsubscribe(this, `room.${this.login}`);
if ( this.manager.socket )
this.manager.socket.unsubscribe(this, `room.${this.login}`);
}
}
@ -173,7 +175,8 @@ export default class Room {
// Make sure we didn't have a funky loop thing happen.
this._login = val;
this.manager.rooms[val] = this;
this.manager.socket.subscribe(this, `room.${val}`);
if ( this.manager.socket )
this.manager.socket.subscribe(this, `room.${val}`);
this.manager.emit(':room-update-login', this, val);
}