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,39 @@
// Metro module 5051 (f5052).
import Module589 from "../../../_bundle/Module589";
import Dispatcher from "../../../Dispatcher";
let c3049_0 = {
topEmojisByGuildId: {}
};
let c3049_1 = c3049_0;
let c3049_2 = {};
class TopEmojiStore extends Module589.PersistedStore {
static displayName = "TopEmojiStore";
static persistKey = "TopEmojiStore";
initialize(a0) {
c3049_1 = a0 == null ? c3049_0 : a0;
}
getState() {
return c3049_1;
}
getTopEmojiIdsByGuildId(a0) {
return c3049_1.topEmojisByGuildId[a0];
}
getIsFetching(a0) {
return c3049_2[a0];
}
}
const topEmojiStore = new TopEmojiStore(Dispatcher, {
LOGOUT: function handleLogout() {
c3049_1 = c3049_0;
c3049_2 = {};
},
TOP_EMOJIS_FETCH: function handleTopEmojiFetching(a0) {
c3049_2[a0.guildId] = true;
},
TOP_EMOJIS_FETCH_SUCCESS: function handleTopEmojisLoaded(a0) {
const guildId = a0.guildId;
c3049_1.topEmojisByGuildId[guildId] = a0.topEmojisMetadata.map((item) => item.emojiId);
c3049_2[guildId] = false;
}
});
export default topEmojiStore;