This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,14 @@
// Metro module 15886 (f15887).
import { useCallback } from "react";
import ChannelStore from "../../../../stores/ChannelStore";
import { AnalyticsPages, InstantInviteSources } from "../../../../Constants";
import { navigateToNewGroupDM } from "../../../main_tabs_v2/helpers/NavigationRouteUtils.native";
import { showInstantInviteActionSheet } from "../../../instant_invite/native/InstantInviteUtils";
export function useInviteMembersCallback(a0) {
return useCallback(() => {
const channel = ChannelStore.getChannel(a0);
return channel != null ? channel.isPrivate() ? navigateToNewGroupDM(channel.id, AnalyticsPages.CHANNEL_CALL) : showInstantInviteActionSheet(channel, {
source: InstantInviteSources.VOICE_CHANNEL
}) : null;
}, [a0]);
}