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

@@ -0,0 +1,32 @@
// Metro module 16648 (f16649).
import Durations from "../../../utils/Durations";
import Module589 from "../../../_bundle/Module589";
import Dispatcher from "../../../Dispatcher";
const HOUR = Durations.Millis.HOUR;
let c11987_1 = {
lastReportedAtMs: null
};
let c11987_2 = c11987_1;
class FriendOnlineTimerStore extends Module589.PersistedStore {
static displayName = "FriendOnlineTimerStore";
static persistKey = "FriendOnlineTimerStore";
initialize(r2 = c11987_1) {
if (r2 == null) {
r2 = c11987_1;
}
c11987_2 = r2;
}
isCooldownElapsed() {
return c11987_2.lastReportedAtMs == null || Date.now() - c11987_2.lastReportedAtMs >= HOUR;
}
getState() {
return c11987_2;
}
}
const friendOnlineTimerStore = new FriendOnlineTimerStore(Dispatcher, {
FRIEND_ONLINE_TIMER_REPORTED: function setLastReportedAtMs(a0) {
c11987_2.lastReportedAtMs = a0.timestampMs;
return true;
}
});
export default friendOnlineTimerStore;