2026-09-24 10:59:02 +00:00
|
|
|
// Module ID: 8106
|
|
|
|
|
// Function ID: 8107
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: DraftActionCreators
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [573, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-24 10:59:02 +00:00
|
|
|
// Module 8106 (DraftActionCreators)
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
DispatcherDefault.dispatch({ type: "DRAFT_SAVE", channelId: id, draft: result1, draftType: ChannelMessage, command: toDraftCommandResult });
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
DispatcherDefault.dispatch({ type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft });
|
2026-08-12 06:57:52 +00:00
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
changeScheduledMessage(channelId, draft) {
|
|
|
|
|
DispatcherDefault.dispatch({ type: "SCHEDULED_MESSAGE_DRAFT_CHANGE", channelId, draft });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|