decord/source/actions/native/MessagePreviewActionCreators.tsx

32 lines
1,005 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9989
2026-07-27 11:26:19 +00:00
// Function ID: 77285
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 507, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 9989
2026-07-23 10:11:24 +00:00
import ME from "ME";
let closure_3;
let closure_4;
({ Endpoints: closure_3, MAX_MESSAGES_PER_CHANNEL: closure_4 } = ME);
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;
const HTTP = _require(507).HTTP;
let obj = { url: closure_3.MESSAGES(channelId), query: null, retries: 2, oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
obj = { limit: closure_4, around };
2026-07-22 07:54:56 +00:00
obj.query = obj;
2026-07-20 16:05:17 +00:00
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-23 10:11:24 +00:00
importDefault(686).dispatch({ type: "CLEAR_MESSAGES_AROUND_SUCCESS" });
2026-07-20 16:05:17 +00:00
}
};