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

+16
View File
@@ -0,0 +1,16 @@
// Metro module 10248 (f10249).
import ChannelStore from "../../stores/ChannelStore";
import UserStore from "../../stores/UserStore";
import { isChannelContentGated } from "../age_gate/AgeGateUtils";
export function canViewPotentiallyNSFWChannel(a0) {
const currentUser = UserStore.getCurrentUser();
const channel = ChannelStore.getChannel(a0);
return currentUser != null && channel != null && !isChannelContentGated(channel);
}
export function getGuildIdFromMessage(a0) {
let r9 = ChannelStore.getChannel(a0.channel_id)?.guild_id;
if (r9 == null) {
r9 = void 0;
}
return r9;
}