decord/source/actions/DraftActionCreators.tsx

31 lines
937 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6036
2026-07-27 11:26:19 +00:00
// Function ID: 54132
2026-07-23 10:11:24 +00:00
// Name: dispatcher
// Dependencies: [686, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 6036 (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 {
clearDraft(channelId, draftType) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "DRAFT_CLEAR", channelId, draftType };
obj.dispatch(obj);
},
2026-07-24 07:16:23 +00:00
saveDraft(id, result, ChannelMessage) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
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-23 10:11:24 +00:00
let obj = importDefault(686);
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-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft };
obj.dispatch(obj);
}
};