Files
2026-07-28 01:06:53 +03:00

49 lines
2.6 KiB
TypeScript

/* Metro module 11379; source: modules/messages/native/handlers/handleMessagesLongPressChannel.tsx; dependencies: [4800, 9862, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun87227(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11565:6, offset: 0x01fb47cd, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/messages/native/handlers/handleMessagesLongPressChannel.tsx');
exports.handleMessagesLongPressChannel = handleMessagesLongPressChannel;
function handleMessagesLongPressChannel({data}) { // fn#87228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11565:226, offset: 0x01fb4834, size: 137 bytes, params: 2, frame: 18
var r6;
var value;
const guildId = data.guildId;
const channelId = data.channelId;
const messageId = data.messageId;
const originalLink = data.originalLink;
if (channelId != null) {
if (originalLink != null) {
r6 = originalLink;
} else {
value = require(4800) /* metro dependency 4800: ChannelUtils */;
value = value.getChannelPermalink(guildId, channelId, messageId);
r6 = value;
}
if (r6 != null) {
(importDefault(9862) /* metro dependency 9862: showLongPressURLActionSheet */)({urlString: r6,
guildId: guildId,
channelId: channelId, messageId: messageId});
}
} else if (originalLink != null) {
if (originalLink != null) {
r6 = originalLink;
} else {
value = require(4800) /* metro dependency 4800: ChannelUtils */;
value = value.getChannelPermalink(guildId, channelId, messageId);
r6 = value;
}
if (r6 != null) {
(importDefault(9862) /* metro dependency 9862: showLongPressURLActionSheet */)({urlString: r6,
guildId: guildId,
channelId: channelId, messageId: messageId});
}
}
}
}
global.__d(_fun87227, 11379, [4800, 9862, 2]) /* metro module 11379, dependencies: [4800, 9862, 2] */;