decord/alpha/source/actions/DraftActionCreators.tsx

32 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 8017
// Function ID: 8018
// Name: DraftActionCreators
// Dependencies: [573, 2]
2026-07-20 16:05:17 +00:00
// Module 8017 (DraftActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.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) {
DispatcherDefault.dispatch({ type: "DRAFT_CLEAR", channelId: id, draftType: ThreadSettings });
2026-07-20 16:05:17 +00:00
},
2026-08-31 15:47:37 +00:00
clearDraftCommand(channelId, draftType) {
DispatcherDefault.dispatch({ type: "DRAFT_COMMAND_CLEAR", channelId, draftType });
2026-08-31 15:47:37 +00:00
},
2026-09-02 09:53:35 +00:00
saveDraft(id, result1, ChannelMessage, toDraftCommandResult) {
DispatcherDefault.dispatch({ type: "DRAFT_SAVE", channelId: id, draft: result1, draftType: ChannelMessage, command: toDraftCommandResult });
2026-07-20 16:05:17 +00:00
},
changeDraft(id, draft, ChannelMessage, command) {
DispatcherDefault.dispatch({ type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage, command });
2026-07-20 16:05:17 +00:00
},
changeThreadSettings(id, draft) {
DispatcherDefault.dispatch({ type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft });
2026-08-12 06:57:52 +00:00
},
changeScheduledMessage(channelId, draft) {
DispatcherDefault.dispatch({ type: "SCHEDULED_MESSAGE_DRAFT_CHANGE", channelId, draft });
2026-07-20 16:05:17 +00:00
}
};