Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,51 @@
|
||||
/* Metro module 11344; source: modules/messages/native/hooks/useChannelLoading.tsx; dependencies: [57, 31, 11345, 9835, 4595, 2] */
|
||||
function _fun86737(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11530:6, offset: 0x01f9e2c4, size: 137 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/hooks/useChannelLoading.tsx');
|
||||
exports.default = useChannelLoading;
|
||||
}
|
||||
|
||||
function useChannelLoading({channelId, jumpTargetId, oldestUnreadMessageId, shouldJumpToOriginalPost}) { // fn#86738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11530:211, offset: 0x01f9e34d, size: 150 bytes, params: 2, frame: 16
|
||||
const property = shouldJumpToOriginalPost(env0_4.useState(_fun86739), 1)[0];
|
||||
const closure = startOrCancelLatestMessagesLoad;
|
||||
(importDefault(4595) /* metro dependency 4595: useMountEffect */)(function() {
|
||||
startOrCancelLatestMessagesLoad(false);
|
||||
return _fun86742;
|
||||
});
|
||||
return {channelLatestMessageLoadingStatsManager: property, startOrCancelLatestMessagesLoad: closure};
|
||||
}
|
||||
|
||||
function _fun86739() { // fn#86739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11530:337, offset: 0x01f9e3e3, size: 51 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(11345) /* metro dependency 11345: ChannelLatestMessageLoadingStatsManager */;
|
||||
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
||||
value = new value('Messages');
|
||||
return value instanceof Object ? value : value2;
|
||||
}
|
||||
|
||||
function startOrCancelLatestMessagesLoad(a0) { // fn#86740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11530:412, owner: useChannelLoading.startOrCancelLatestMessagesLoad, offset: 0x01f9e416, size: 95 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = require(9835) /* metro dependency 9835: MessagesUtils */;
|
||||
const startOrCancelChannelLatestMessagesLoad = value.startOrCancelChannelLatestMessagesLoad;
|
||||
const object2 = {};
|
||||
object2.jumpTargetId = jumpTargetId;
|
||||
object2.oldestUnreadMessageId = oldestUnreadMessageId;
|
||||
object2.shouldJumpToOriginalPost = shouldJumpToOriginalPost(a0);
|
||||
object2.channelId = channelId;
|
||||
object2.tracker = env0_4;
|
||||
Reflect.apply(startOrCancelChannelLatestMessagesLoad, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun86741() { // fn#86741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11530:574, offset: 0x01f9e475, size: 27 bytes, params: 1, frame: 11
|
||||
startOrCancelLatestMessagesLoad(false);
|
||||
return _fun86742;
|
||||
}
|
||||
|
||||
function _fun86742() { // fn#86742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11530:615, offset: 0x01f9e490, size: 21 bytes, params: 1, frame: 9
|
||||
env1_4.cancel();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user