decord/beta/source/actions/native/UploadActionCreators.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

36 lines
1.4 KiB
TypeScript

// Module ID: 11911
// Function ID: 11912
// Name: UploadActionCreators
// Dependencies: [5139, 8117, 577, 2]
// Module 11911 (UploadActionCreators)
import DispatcherDefault from "Dispatcher" /* 577 */;
import DraftStore from "DraftStore" /* 5139 */;
import UploadStore from "UploadStore" /* 8117 */;
const DraftType = fn(5139).DraftType;
const size = fn(2);
const result = size.fileFinishedImporting("actions/native/UploadActionCreators.tsx");
export default {
restoreFailedUpload(messageId, file) {
DispatcherDefault.dispatch({ type: "UPLOAD_RESTORE_FAILED_UPLOAD", messageId, file });
},
cancel(channelId, file) {
DispatcherDefault.dispatch({ type: "UPLOAD_CANCEL_REQUEST", channelId, file });
const messageForFile = UploadStore.getMessageForFile(file.id);
if (null != messageForFile) {
if ("" === DraftStore.getDraft(messageForFile.channel_id, DraftType.ChannelMessage)) {
const obj3 = { type: "DRAFT_SAVE", channelId: null, draft: null, draftType: null };
({ channel_id: obj4.channelId, content: obj4.draft } = messageForFile);
obj3.draftType = tmp6.ChannelMessage;
DispatcherDefault.dispatch(obj3);
const tmpResult = DispatcherDefault;
}
tmp6 = DraftType;
}
},
cancelUploadItem(found, itemId) {
DispatcherDefault.dispatch({ type: "UPLOAD_ITEM_CANCEL_REQUEST", file: found, itemId });
}
};