decord/source/modules/messages/native/handlers/handleMessagesLongPressChannel.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

30 lines
1.1 KiB
TypeScript

// Module ID: 11583
// Function ID: 11584
// Name: handleMessagesLongPressChannel
// Dependencies: [4705, 11584, 2]
// Exports: handleMessagesLongPressChannel
// Module 11583 (handleMessagesLongPressChannel)
import set from "set" /* 2 */;
import allowChannelAccess from "allowChannelAccess" /* 4705 */;
import showLongPressURLActionSheetDefault from "showLongPressURLActionSheet" /* 11584 */;
const result = set.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) {
let obj = allowChannelAccess;
originalLink = obj.getChannelPermalink(guildId, channelId, messageId);
}
if (null != originalLink) {
obj = { urlString: null, guildId: null, channelId: null, messageId: null };
obj[0] = originalLink;
obj[1] = guildId;
obj[2] = channelId;
obj[3] = messageId;
showLongPressURLActionSheetDefault(obj);
}
}
};