decord/source/actions/native/MessagePreviewActionCreators.tsx

31 lines
953 B
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 15719
// Function ID: 15720
2026-07-29 08:29:29 +00:00
// Dependencies: [676, 530, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-08 06:10:11 +00:00
// Module 15719
2026-07-23 10:11:24 +00:00
import ME from "ME";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
({ Endpoints: c3, MAX_MESSAGES_PER_CHANNEL: c4 } = ME);
2026-07-23 10:11:24 +00:00
const result = require("dispatcher").fileFinishedImporting("actions/native/MessagePreviewActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
fetchMessages(channelId, around) {
2026-07-23 10:11:24 +00:00
const _require = channelId;
let closure_1 = around;
2026-07-29 08:29:29 +00:00
const HTTP = _require(530).HTTP;
obj = { url: closure_3.MESSAGES(channelId), query: obj, retries: 2, oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
obj = { limit: closure_4, around };
const value = HTTP.get(obj);
value.then((body) => {
2026-07-23 10:11:24 +00:00
let obj = around(outer1_2[2]);
obj = { type: "LOAD_MESSAGES_AROUND_SUCCESS", channelId: closure_0, messages: body.body, around };
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
});
},
clearMessages() {
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "CLEAR_MESSAGES_AROUND_SUCCESS" });
2026-07-20 16:05:17 +00:00
}
};