decord/source/modules/messages/native/handlers/handleMessagesLongPressChannel.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

25 lines
986 B
TypeScript

// Module ID: 11614
// Function ID: 11615
// Name: handleMessagesLongPressChannel
// Dependencies: [4719, 11615, 2]
// Exports: handleMessagesLongPressChannel
// Module 11614 (handleMessagesLongPressChannel)
import ChannelUtils from "ChannelUtils" /* 4719 */;
import showLongPressURLActionSheetDefault from "showLongPressURLActionSheet" /* 11615 */;
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);
}
}
};