37 lines
2.5 KiB
TypeScript
37 lines
2.5 KiB
TypeScript
/* Metro module 11420; source: actions/native/UploadActionCreators.tsx; dependencies: [4645, 7223, 694, 2] */
|
|
function _fun87439(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:6, offset: 0x01fbe801, size: 180 bytes, params: 8, frame: 19
|
|
var object2;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const draftStore = importDefault(4645) /* metro dependency 4645: DraftStore */;
|
|
const env0_3 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
|
|
const uploadStore = importDefault(7223) /* metro dependency 7223: UploadStore */;
|
|
object2 = {restoreFailedUpload: restoreFailedUpload, cancel: cancel_87441, cancelUploadItem: cancelUploadItem};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/UploadActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
function restoreFailedUpload(a0, a1) { // fn#87440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:139, offset: 0x01fbe8b5, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_RESTORE_FAILED_UPLOAD',
|
|
messageId: a0, file: a1});
|
|
}
|
|
|
|
function cancel_87441(a0, a1) { // fn#87441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:240, offset: 0x01fbe8f5, size: 200 bytes, params: 3, frame: 17
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_CANCEL_REQUEST', channelId: a0,
|
|
file: a1});
|
|
const messageForFile = UploadStore.getMessageForFile(a1.id);
|
|
if (messageForFile != null) {
|
|
if (DraftStore.getDraft(messageForFile.channel_id, DraftType.ChannelMessage) === '') {
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_SAVE',
|
|
channelId: messageForFile.channel_id, draft: messageForFile.content,
|
|
draftType: DraftType.ChannelMessage});
|
|
}
|
|
}
|
|
}
|
|
|
|
function cancelUploadItem(a0, a1) { // fn#87442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:516, offset: 0x01fbe9bd, size: 65 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ITEM_CANCEL_REQUEST', file: a0,
|
|
itemId: a1});
|
|
}
|
|
|