fix(WEBJS): hide "what's new" modal - use gating days

This commit is contained in:
devlikepro committed 2026-10-02 13:07:08 +07:00
1 parent c4f224b7a6
commit c9ac14e1a4
1 file changed
+7 -1
+7 -1
View File
@@ -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;
}