This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
// Metro module 12805 (f12806).
import AuthenticationStore from "./AuthenticationStore";
import RelationshipStore from "./RelationshipStore";
import Durations from "../utils/Durations";
import SnowflakeUtils from "../utils/SnowflakeUtils";
import Module589 from "../_bundle/Module589";
import Dispatcher from "../Dispatcher";
let c8832_4 = 180 * Durations.Millis.DAY;
let c8832_5 = false;
class PremiumPromoStore extends Module589.Store {
static displayName = "PremiumPromoStore";
initialize() {
this.waitFor(RelationshipStore, AuthenticationStore);
}
isEligible() {
return c8832_5;
}
}
const premiumPromoStore = new PremiumPromoStore(Dispatcher, {
CONNECTION_OPEN: function updatePremiumPromoEligibility() {
const r3 = c8832_5;
const r1 = RelationshipStore.getFriendIDs().length >= 10 && SnowflakeUtils.extractTimestamp(AuthenticationStore.getId()) < Date.now() - c8832_4;
c8832_5 = r1;
return r3 !== r1;
}
});
export default premiumPromoStore;