Skip to content

Commit

Permalink
improve blocked screen checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Oct 25, 2024
1 parent a291e87 commit 6142754
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions app/specific/ScreensObj.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,9 @@ function ScreensObj_StartAllVars() {
AnimateThumb: ScreensObj_AnimateThumbId,
addCell: function (cell) {
var channelId = this.isQuery && cell.creator ? cell.creator.id : cell.user_id;
var skipBlockedCheck = this.screen === Main_AGameVod && this.BeforeAgame === Main_Blocked;

//skip check if game is blocked as we are on the blocked game section
var skipBlockedCheck = this.screen === Main_AGameVod && Screens_getGameIsBlocked(this.gameSelected_Id);

var isNotBlocked = Screens_isNotBlocked(
skipBlockedCheck ? null : channelId,
Expand Down Expand Up @@ -570,7 +572,9 @@ function ScreensObj_StartAllVars() {
},
addCellTemp: function (cell) {
var id_cell = this.useHelix ? cell.user_id : cell.channel._id;
var skipBlockedCheck = this.screen === Main_aGame && this.BeforeAgame === Main_Blocked;

//skip check if game is blocked as we are on the blocked game section
var skipBlockedCheck = this.screen === Main_aGame && Screens_getGameIsBlocked(this.gameSelected_Id);

var isNotBlocked = Screens_isNotBlocked(
skipBlockedCheck ? null : cell.user_id,
Expand Down Expand Up @@ -705,7 +709,9 @@ function ScreensObj_StartAllVars() {
addCell: function (cell) {
var idValue = this.useHelix || this.isQuery ? cell.id : cell.tracking_id;
var channelId = this.isQuery && cell.broadcaster ? cell.broadcaster.id : cell.broadcaster_id;
var skipBlockedCheck = this.screen === Main_AGameClip && this.BeforeAgame === Main_Blocked;

//skip check if game is blocked as we are on the blocked game section
var skipBlockedCheck = this.screen === Main_AGameClip && Screens_getGameIsBlocked(this.gameSelected_Id);

var isNotBlocked = Screens_isNotBlocked(
skipBlockedCheck ? null : channelId,
Expand Down

0 comments on commit 6142754

Please sign in to comment.