decord/source/actions/DraftActionCreators.tsx

44 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 7777
// Function ID: 7778
2026-07-23 10:11:24 +00:00
// Name: dispatcher
// Dependencies: [573, 2]
2026-07-20 16:05:17 +00:00
// Module 7777 (dispatcher)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import dispatcherDefault from "dispatcher" /* 573 */;
2026-08-24 06:08:38 +00:00
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-08-31 15:47:37 +00:00
clearDraftCommand(channelId, draftType) {
2026-08-24 06:08:38 +00:00
let obj = dispatcherDefault;
2026-08-31 15:47:37 +00:00
obj = { type: "DRAFT_COMMAND_CLEAR", channelId, draftType };
obj.dispatch(obj);
},
2026-09-02 09:53:35 +00:00
saveDraft(id, result1, ChannelMessage, toDraftCommandResult) {
2026-08-31 15:47:37 +00:00
let obj = dispatcherDefault;
2026-09-02 09:53:35 +00:00
obj = { type: "DRAFT_SAVE", channelId: id, draft: result1, draftType: ChannelMessage, command: toDraftCommandResult };
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-08-31 15:47:37 +00:00
obj = { type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage, command: arg3 };
2026-07-20 16:05:17 +00:00
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
}
};