diff --git a/public/locales/de/app.json b/public/locales/de/app.json index ef6a8f3..516ad79 100644 --- a/public/locales/de/app.json +++ b/public/locales/de/app.json @@ -113,5 +113,7 @@ "<0>We'd love to hear your feedback so we can improve your experience.": "<0>Wir würden uns freuen, deine Rückmeldung zu hören, um deine Erfahrung verbessern zu können.", "How did it go?": "Wie ist es gelaufen?", "{{count}} stars|one": "{{count}} Stern", - "<0>Thanks for your feedback!": "<0>Danke für deine Rückmeldung!" + "<0>Thanks for your feedback!": "<0>Danke für deine Rückmeldung!", + "{{displayName}} is presenting": "{{displayName}} präsentiert", + "Show connection stats": "Verbindungsstatistiken zeigen" } diff --git a/src/Header.tsx b/src/Header.tsx index c79953c..8974bcc 100644 --- a/src/Header.tsx +++ b/src/Header.tsx @@ -24,9 +24,7 @@ import styles from "./Header.module.css"; import { useModalTriggerState } from "./Modal"; import { Button } from "./button"; import { ReactComponent as Logo } from "./icons/Logo.svg"; -import { ReactComponent as VideoIcon } from "./icons/Video.svg"; import { Subtitle } from "./typography/Typography"; -import { Avatar, Size } from "./Avatar"; import { IncompatibleVersionModal } from "./IncompatibleVersionModal"; interface HeaderProps extends HTMLAttributes { @@ -116,21 +114,11 @@ export function HeaderLogo({ className }: HeaderLogoProps) { interface RoomHeaderInfo { roomName: string; - avatarUrl: string | null; } -export function RoomHeaderInfo({ roomName, avatarUrl }: RoomHeaderInfo) { +export function RoomHeaderInfo({ roomName }: RoomHeaderInfo) { return ( <> -
- - -
{roomName} diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index 2a81f44..2bbd210 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -34,7 +34,6 @@ import { PosthogAnalytics } from "../analytics/PosthogAnalytics"; import { useProfile } from "../profile/useProfile"; import { UserChoices } from "../livekit/useLiveKit"; import { findDeviceByName } from "../media-utils"; -import { useRoomAvatar } from "./useRoomAvatar"; import { OpenIDLoader } from "../livekit/OpenIDLoader"; declare global { @@ -82,14 +81,12 @@ export function GroupCallView({ }, [groupCall]); const { displayName, avatarUrl } = useProfile(client); - const roomAvatarUrl = useRoomAvatar(groupCall.room); const matrixInfo: MatrixInfo = { displayName, avatarUrl, roomName: groupCall.room.name, roomIdOrAlias, - roomAvatarUrl, }; useEffect(() => { diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index d1653ac..10d8818 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -390,10 +390,7 @@ export function InCallView({ {!hideHeader && maximisedParticipant === null && (
- + - + diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx index ed31f6e..6c7cbf4 100644 --- a/src/room/VideoPreview.tsx +++ b/src/room/VideoPreview.tsx @@ -35,7 +35,6 @@ export type MatrixInfo = { avatarUrl: string; roomName: string; roomIdOrAlias: string; - roomAvatarUrl: string | null; }; interface Props { diff --git a/src/video-grid/NewVideoGrid.tsx b/src/video-grid/NewVideoGrid.tsx index b88128d..d6c3718 100644 --- a/src/video-grid/NewVideoGrid.tsx +++ b/src/video-grid/NewVideoGrid.tsx @@ -257,6 +257,11 @@ export function NewVideoGrid({ ); }; + const [lastTappedTileId, setLastTappedTileId] = useState( + undefined + ); + const [lastTapTime, setLastTapTime] = useState(0); + // Callback for useDrag. We could call useDrag here, but the default // pattern of spreading {...bind()} across the children to bind the gesture // ends up breaking memoization and ruining this component's performance. @@ -272,7 +277,14 @@ export function NewVideoGrid({ }: Parameters>[0] ) => { if (tap) { - toggleFocus?.(items.find((i) => i.id === tileId)!); + const now = Date.now(); + + if (tileId === lastTappedTileId && now - lastTapTime < 500) { + toggleFocus?.(items.find((i) => i.id === tileId)!); + } + + setLastTappedTileId(tileId); + setLastTapTime(now); } else { const tileController = springRef.current.find( (c) => (c.item as Tile).item.id === tileId