(feat): improved microphone gate
(fix): weird behaviour related to users that are screensharing
This commit is contained in:
parent
e76c579bb4
commit
c795f691bf
5 changed files with 34 additions and 9 deletions
|
|
@ -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 */}
|
||||
|
|
|
|||
Loading…
Reference in a new issue