fix permissions and styling

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-09-12 14:59:07 +02:00
parent 35b9a524b2
commit ab301227a5
3 changed files with 13 additions and 5 deletions

View File

@@ -283,11 +283,12 @@ export const InCallView: FC<InCallViewProps> = ({
return prefetchSounds({ return prefetchSounds({
waiting: { mp3: genericSoundMp3, ogg: genericSoundOgg }, waiting: { mp3: genericSoundMp3, ogg: genericSoundOgg },
decline: { mp3: leftCallSoundMp3, ogg: leftCallSoundOgg }, decline: { mp3: leftCallSoundMp3, ogg: leftCallSoundOgg },
// do we want a timeout sound? // Do we want a timeout sound?
}); });
}); });
// configure this to sth that fits to the pickup waiting sound. // configure this to sth that fits to the pickup waiting sound.
const PICKUP_SOUND_INTERVAL = 1000; // 1600 is in sync with the animation.
const PICKUP_SOUND_INTERVAL = 1600;
const pickupPhaseAudio = useAudioContext({ const pickupPhaseAudio = useAudioContext({
sounds: pickupPhaseSoundCache, sounds: pickupPhaseSoundCache,
@@ -373,7 +374,7 @@ export const InCallView: FC<InCallViewProps> = ({
onLeave(); onLeave();
}); });
} }
}); }, [callPickupState, onLeave, pickupPhaseAudio]);
// When waiting for pickup, loop a waiting sound // When waiting for pickup, loop a waiting sound
useEffect((): void | (() => void) => { useEffect((): void | (() => void) => {
@@ -418,7 +419,9 @@ export const InCallView: FC<InCallViewProps> = ({
size={AvatarSize.XL} size={AvatarSize.XL}
/> />
</div> </div>
<Text size="md">{text}</Text> <Text size="md" className={waitingStyles.text}>
{text}
</Text>
</div> </div>
</div> </div>
); );

View File

@@ -24,10 +24,14 @@
position: absolute; position: absolute;
inset: -12px; inset: -12px;
border-radius: 9999px; border-radius: 9999px;
border: 2px solid rgba(255, 255, 255, 0.6); border: 12px solid rgba(255, 255, 255, 0.6);
animation: pulse 1.6s ease-out infinite; animation: pulse 1.6s ease-out infinite;
} }
.text {
color: var(--cpd-color-text-on-solid-primary);
}
@keyframes pulse { @keyframes pulse {
0% { 0% {
transform: scale(0.95); transform: scale(0.95);

View File

@@ -116,6 +116,7 @@ export const widget = ((): WidgetHelpers | null => {
EventType.Reaction, EventType.Reaction,
EventType.RoomRedaction, EventType.RoomRedaction,
ElementCallReactionEventType, ElementCallReactionEventType,
EventType.RTCDecline,
]; ];
const sendState = [ const sendState = [