decord/source/actions/DraftActionCreators.tsx

39 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7562
// Function ID: 7563
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-24 06:08:38 +00:00
// Module 7562 (dispatcher)
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 709 */;
const result = 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) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
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-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-07-20 16:05:17 +00:00
obj = { type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage };
obj.dispatch(obj);
},
changeThreadSettings(id, draft) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
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-24 06:08:38 +00:00
let obj = dispatcherDefault;
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
}
};