decord/source/actions/DraftActionCreators.tsx

36 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 7524
// Function ID: 7525
2026-07-23 10:11:24 +00:00
// Name: dispatcher
2026-07-29 08:29:29 +00:00
// Dependencies: [709, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 7524 (dispatcher)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("actions/DraftActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
2026-07-29 08:29:29 +00:00
clearDraft(id, ThreadSettings) {
let obj = importDefault(709);
obj = { type: "DRAFT_CLEAR", channelId: id, draftType: ThreadSettings };
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
},
2026-07-24 07:16:23 +00:00
saveDraft(id, result, ChannelMessage) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-24 07:16:23 +00:00
obj = { type: "DRAFT_SAVE", channelId: id, draft: result, draftType: ChannelMessage };
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
},
changeDraft(id, draft, ChannelMessage) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage };
obj.dispatch(obj);
},
changeThreadSettings(id, draft) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft };
obj.dispatch(obj);
2026-08-12 06:57:52 +00:00
},
2026-08-13 07:00:46 +00:00
changeScheduledMessage(closure_0, draft) {
2026-08-12 06:57:52 +00:00
let obj = importDefault(709);
2026-08-13 07:00:46 +00:00
obj = { type: "SCHEDULED_MESSAGE_DRAFT_CHANGE", channelId: closure_0, draft };
2026-08-12 06:57:52 +00:00
obj.dispatch(obj);
2026-07-20 16:05:17 +00:00
}
};