decord/alpha/source/actions/DimensionActionCreators.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

38 lines
1.4 KiB
TypeScript

// Module ID: 10645
// Function ID: 10646
// Name: DimensionActionCreators
// Dependencies: [573, 2]
// Module 10645 (DimensionActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
let result = size.fileFinishedImporting("actions/DimensionActionCreators.tsx");
export default {
updateChannelDimensions(id, eventTimestamp, scrollTop, scrollHeight, offsetHeight, fn) {
DispatcherDefault.dispatch({ type: "UPDATE_CHANNEL_DIMENSIONS", channelId: id, timestamp: eventTimestamp, scrollTop, scrollHeight, offsetHeight });
if (fn != null) {
fn();
}
},
updateChannelListScroll(guildId, scrollTop) {
let items = arg2;
if (arg2 === undefined) {
items = [];
}
DispatcherDefault.dispatch({ type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTop, channelIds: items });
},
channelListScrollTo(guildId, dMFromUserId) {
DispatcherDefault.dispatch({ type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTo: dMFromUserId, channelIds: [] });
},
clearChannelListScrollTo(guildId) {
DispatcherDefault.dispatch({ type: "UPDATE_CHANNEL_LIST_DIMENSIONS", guildId, scrollTo: null, channelIds: [] });
},
clearChannelDimensions(channelId, fn) {
const result = this.updateChannelDimensions(channelId, Date.now(), null, null, null, fn);
},
updateGuildListScrollTo(scrollTop) {
DispatcherDefault.dispatch({ type: "UPDATE_GUILD_LIST_DIMENSIONS", scrollTop });
}
};