(feat): improved microphone gate
All checks were successful
/ build-web (push) Successful in 1m16s
/ build-desktop (push) Successful in 14m2s
/ build-mobile (push) Successful in 19m13s
/ release (push) Successful in 24s

(fix): weird behaviour related to users that are screensharing
This commit is contained in:
Alois 2026-05-15 16:19:03 +02:00
commit c795f691bf
5 changed files with 34 additions and 9 deletions

View file

@ -152,12 +152,12 @@ export default function Base({
const onClick = () => {
if (view === "grid") {
focusParticipant(user.user_id);
focusParticipant(user.user_id, type);
} else {
if (user.user_id === focusedParticipantId) {
setCallView("grid");
} else {
focusParticipant(user.user_id);
focusParticipant(user.user_id, type);
}
}
};
@ -215,7 +215,7 @@ export default function Base({
ref={currentCard}
className={`transition-all duration-150 z-10 bg-card absolute top-0 left-0 w-full h-full flex gap-2 items-center justify-center ${
flush ? "rounded-none" : "rounded-sm"
} ${isSpeaking ? "border-4 border-(--primary-foreground-alt)/75" : "border-0"}`}
} ${type === "user" && isSpeaking ? "border-4 border-(--primary-foreground-alt)/75" : "border-0"}`}
style={{ containerType: "size" }}
>
{/* Detect video / user and place here */}