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,21 @@
// Metro module 15107 (f15108).
import useChannelVideoLimit from "../../video_calls/useChannelVideoLimit";
import VoiceChannelUserLimit from "./VoiceChannelUserLimit";
export function ConnectedUserLimit(props) {
const channel = props.channel;
let video = props.video;
const userCount = props.userCount;
const limit = useChannelVideoLimit(channel).limit;
const r13 = channel.userLimit > 0 ? channel.userLimit : -1;
if (video) {
video = limit > 0;
}
let videoLimit = false;
let total = r13;
if (video) {
const r1 = r13 < 0 || limit < r13;
total = r13 > 0 ? Math.min(r13, limit) : limit;
videoLimit = r1;
}
return <VoiceChannelUserLimit users={userCount} total={total} videoLimit={videoLimit} />;
}