decord/source/modules/messages/native/handlers/handleMessagesLongPressChannel.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

25 lines
986 B
TypeScript

// Module ID: 11712
// Function ID: 11713
// Name: handleMessagesLongPressChannel
// Dependencies: [4781, 11713, 2]
// Exports: handleMessagesLongPressChannel
// Module 11712 (handleMessagesLongPressChannel)
import ChannelUtils from "ChannelUtils" /* 4781 */;
import showLongPressURLActionSheetDefault from "showLongPressURLActionSheet" /* 11713 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/messages/native/handlers/handleMessagesLongPressChannel.tsx");
export const handleMessagesLongPressChannel = function handleMessagesLongPressChannel(data) {
({ guildId, channelId, messageId, originalLink } = data.data);
if (null != channelId) {
if (originalLink == null) {
originalLink = ChannelUtils.getChannelPermalink(guildId, channelId, messageId);
}
if (null != originalLink) {
const obj2 = { urlString: originalLink, guildId, channelId, messageId };
showLongPressURLActionSheetDefault(obj2);
}
}
};