mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-24 11:38:30 +00:00
4.0.0-rc12.23
Fixed: Twitch updated the raid chat UI, breaking the option to stop automatically joining raids.
This commit is contained in:
parent
fe41eecd77
commit
1eefb1dc8b
2 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@ class FrankerFaceZ extends Module {
|
||||||
FrankerFaceZ.Logger = Logger;
|
FrankerFaceZ.Logger = Logger;
|
||||||
|
|
||||||
const VER = FrankerFaceZ.version_info = {
|
const VER = FrankerFaceZ.version_info = {
|
||||||
major: 4, minor: 0, revision: 0, extra: '-rc12.22',
|
major: 4, minor: 0, revision: 0, extra: '-rc12.23',
|
||||||
commit: __git_commit__,
|
commit: __git_commit__,
|
||||||
build: __webpack_hash__,
|
build: __webpack_hash__,
|
||||||
toString: () =>
|
toString: () =>
|
||||||
|
|
|
@ -98,7 +98,7 @@ export default class Channel extends Module {
|
||||||
old_handle_join = inst.handleJoinRaid;
|
old_handle_join = inst.handleJoinRaid;
|
||||||
|
|
||||||
inst.handleJoinRaid = function(event, ...args) {
|
inst.handleJoinRaid = function(event, ...args) {
|
||||||
const raid_id = inst.state && inst.state.raid && inst.state.raid.id;
|
const raid_id = inst.props && inst.props.raid && inst.props.raid.id;
|
||||||
if ( event && event.type && raid_id )
|
if ( event && event.type && raid_id )
|
||||||
t.joined_raids.add(raid_id);
|
t.joined_raids.add(raid_id);
|
||||||
|
|
||||||
|
@ -112,8 +112,8 @@ export default class Channel extends Module {
|
||||||
noAutoRaids(inst) {
|
noAutoRaids(inst) {
|
||||||
if ( this.settings.get('channel.raids.no-autojoin') )
|
if ( this.settings.get('channel.raids.no-autojoin') )
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if ( inst.state.raid && ! inst.isRaidCreator && inst.hasJoinedCurrentRaid ) {
|
if ( inst.props && inst.props.raid && ! inst.isRaidCreator && inst.hasJoinedCurrentRaid ) {
|
||||||
const id = inst.state.raid.id;
|
const id = inst.props.raid.id;
|
||||||
if ( this.joined_raids.has(id) )
|
if ( this.joined_raids.has(id) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue