From c9ac14e1a438782bd1806d794afd3345fa885f94 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Fri, 2 Oct 2026 11:55:08 +0700 Subject: [PATCH] fix(WEBJS): hide "what's new" modal - use gating days --- src/core/engines/webjs/WebjsClientCore.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/engines/webjs/WebjsClientCore.ts b/src/core/engines/webjs/WebjsClientCore.ts index c3f84a4f..066af44b 100644 --- a/src/core/engines/webjs/WebjsClientCore.ts +++ b/src/core/engines/webjs/WebjsClientCore.ts @@ -159,7 +159,13 @@ export class WebjsClientCore extends Client { if (!WAWebUserPrefsMeUser.getMaybeMePnUser()) { return false; } - const nux = WAWebWhatsNewNux.createWhatsNewNux(); + // The app checks the cool-off with AB-prop driven days (15 or 30) + const WAWebWhatsNewGatingUtils = window.require( + 'WAWebWhatsNewGatingUtils', + ); + const days = + WAWebWhatsNewGatingUtils?.getWhatsNewAutoModalCooldownDays?.(); + const nux = WAWebWhatsNewNux.createWhatsNewNux(days); if (!nux.shouldShow()) { return false; }