Files
discord-decomp/modules/activities/stores/CustomActivityLinksStore.tsx
T
2026-11-01 12:12:55 +02:00

26 lines
880 B
TypeScript

// Metro module 12281 (f12282).
import CustomActivityLinkRecord from "../records/CustomActivityLinkRecord";
import Module589 from "../../../_bundle/Module589";
import Dispatcher from "../../../Dispatcher";
let c8481_1 = {};
class CustomActivityLinksStore extends Module589.Store {
static displayName = "CustomActivityLinksStore";
getOne(a0, a1) {
if (c8481_1[a0] != null) {
return c8481_1[a0][a1];
}
}
}
const customActivityLinksStore = new CustomActivityLinksStore(Dispatcher, {
CUSTOM_ACTIVITY_LINK_FETCH_SUCCESS: function handleFetchSuccess({ applicationId, link }) {
if (c8481_1[applicationId] == null) {
c8481_1[applicationId] = Object.create(null);
}
c8481_1[applicationId][link.link_id] = new CustomActivityLinkRecord(link);
},
LOGOUT: function handleLogout() {
c8481_1 = {};
}
});
export default customActivityLinksStore;