decord/source/actions/native/MessagePreviewActionCreators.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

30 lines
1,016 B
TypeScript

// Module ID: 16644
// Function ID: 16645
// Dependencies: [1074, 1272, 573, 2]
// Module 16644
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import ME from "ME" /* 1074 */;
({ Endpoints: c3, MAX_MESSAGES_PER_CHANNEL: c4 } = ME);
const result = set.fileFinishedImporting("actions/native/MessagePreviewActionCreators.tsx");
export default {
fetchMessages(channelId, around) {
const _require = channelId;
closure_1 = around;
const HTTP = _require(1272).HTTP;
obj = { url: closure_3.MESSAGES(channelId), query: obj, retries: 2, oldFormErrors: true, rejectWithError: true };
obj = { limit: closure_4, around };
const value = HTTP.get(obj);
value.then((body) => {
let obj = around(closure_1_2[2]);
obj = { type: "LOAD_MESSAGES_AROUND_SUCCESS", channelId: closure_0, messages: body.body, around };
obj.dispatch(obj);
});
},
clearMessages() {
dispatcherDefault.dispatch({ type: "CLEAR_MESSAGES_AROUND_SUCCESS" });
}
};