20 lines
692 B
TypeScript
20 lines
692 B
TypeScript
// Metro module 11847 (f11848).
|
|
import GuildChannelStore from "../../stores/GuildChannelStore";
|
|
import { InstantInviteSources } from "../../Constants";
|
|
import { showInstantInviteActionSheet } from "../../modules/instant_invite/native/InstantInviteUtils";
|
|
export function showInstantInviteModal(c19213_0) {
|
|
GuildChannelStore.addConditionalChangeListener(() => {
|
|
const defaultChannel = GuildChannelStore.getDefaultChannel(c19213_0);
|
|
let r9 = defaultChannel == null;
|
|
if (!r9) {
|
|
setImmediate(() => {
|
|
showInstantInviteActionSheet(defaultChannel, {
|
|
source: InstantInviteSources.GUILD_CREATE
|
|
});
|
|
});
|
|
r9 = false;
|
|
}
|
|
return r9;
|
|
});
|
|
}
|