decord/source/actions/native/MessagePreviewActionCreators.tsx

29 lines
970 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10019
2026-07-21 22:01:30 +00:00
// Function ID: 77418
2026-07-20 16:05:17 +00:00
// Dependencies: []
2026-07-21 06:55:02 +00:00
// Module 10019
2026-07-20 16:05:17 +00:00
const _module = require(dependencyMap[0]);
({ Endpoints: closure_3, MAX_MESSAGES_PER_CHANNEL: closure_4 } = _module);
const _module1 = require(dependencyMap[3]);
const result = _module1.fileFinishedImporting("actions/native/MessagePreviewActionCreators.tsx");
export default {
fetchMessages(channelId, around) {
const require = channelId;
const importDefault = around;
const HTTP = require(dependencyMap[1]).HTTP;
2026-07-21 22:01:30 +00:00
let obj = { url: closure_3.MESSAGES(channelId), query: obj };
2026-07-20 16:05:17 +00:00
obj = { limit: closure_4, around };
const value = HTTP.get(obj);
value.then((body) => {
let obj = arg1(closure_2[2]);
obj = { type: "LOAD_MESSAGES_AROUND_SUCCESS", channelId: body, messages: body.body, around: arg1 };
obj.dispatch(obj);
});
},
clearMessages() {
importDefault(dependencyMap[2]).dispatch({ type: "CLEAR_MESSAGES_AROUND_SUCCESS" });
}
};