mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-04 23:05:50 +00:00
review
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@
|
|||||||
"matrix_id": "Matrix ID: {{id}}",
|
"matrix_id": "Matrix ID: {{id}}",
|
||||||
"show_connection_stats": "Show connection statistics",
|
"show_connection_stats": "Show connection statistics",
|
||||||
"show_non_member_tiles": "Show tiles for non-member media",
|
"show_non_member_tiles": "Show tiles for non-member media",
|
||||||
"use_NewMembershipmanager": "Use the new implementation of the call MembershipManager"
|
"use_new_membership_manager": "Use the new implementation of the call MembershipManager"
|
||||||
},
|
},
|
||||||
"disconnected_banner": "Connectivity to the server has been lost.",
|
"disconnected_banner": "Connectivity to the server has been lost.",
|
||||||
"error": {
|
"error": {
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
const roomName = useRoomName(room);
|
const roomName = useRoomName(room);
|
||||||
const roomAvatar = useRoomAvatar(room);
|
const roomAvatar = useRoomAvatar(room);
|
||||||
const { perParticipantE2EE, returnToLobby } = useUrlParams();
|
const { perParticipantE2EE, returnToLobby } = useUrlParams();
|
||||||
const e2eeSystem = useRoomEncryptionSystem(rtcSession.room.roomId);
|
const e2eeSystem = useRoomEncryptionSystem(room.roomId);
|
||||||
const [newMembershipManager] = useSetting(useNewMembershipManagerSetting);
|
const [newMembershipManager] = useSetting(useNewMembershipManagerSetting);
|
||||||
|
|
||||||
usePageTitle(roomName);
|
usePageTitle(roomName);
|
||||||
@@ -170,22 +170,13 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
userId: client.getUserId()!,
|
userId: client.getUserId()!,
|
||||||
displayName: displayName!,
|
displayName: displayName!,
|
||||||
avatarUrl: avatarUrl!,
|
avatarUrl: avatarUrl!,
|
||||||
roomId: rtcSession.room.roomId,
|
roomId: room.roomId,
|
||||||
roomName,
|
roomName,
|
||||||
roomAlias: room.getCanonicalAlias(),
|
roomAlias: room.getCanonicalAlias(),
|
||||||
roomAvatar,
|
roomAvatar,
|
||||||
e2eeSystem,
|
e2eeSystem,
|
||||||
};
|
};
|
||||||
}, [
|
}, [client, displayName, avatarUrl, roomName, room, roomAvatar, e2eeSystem]);
|
||||||
client,
|
|
||||||
displayName,
|
|
||||||
avatarUrl,
|
|
||||||
rtcSession.room.roomId,
|
|
||||||
roomName,
|
|
||||||
room,
|
|
||||||
roomAvatar,
|
|
||||||
e2eeSystem,
|
|
||||||
]);
|
|
||||||
|
|
||||||
// Count each member only once, regardless of how many devices they use
|
// Count each member only once, regardless of how many devices they use
|
||||||
const participantCount = useMemo(
|
const participantCount = useMemo(
|
||||||
@@ -319,8 +310,7 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const [left, setLeft] = useState(false);
|
const [left, setLeft] = useState(false);
|
||||||
const [error, setError] =
|
const [error, setError] = useState<ElementCallError | null>(null);
|
||||||
useState<ElementCallError | null>(null);
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const onLeave = useCallback(
|
const onLeave = useCallback(
|
||||||
@@ -334,7 +324,7 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
// Otherwise the iFrame gets killed before the callEnded event got tracked.
|
// Otherwise the iFrame gets killed before the callEnded event got tracked.
|
||||||
const posthogRequest = new Promise((resolve) => {
|
const posthogRequest = new Promise((resolve) => {
|
||||||
PosthogAnalytics.instance.eventCallEnded.track(
|
PosthogAnalytics.instance.eventCallEnded.track(
|
||||||
rtcSession.room.roomId,
|
room.roomId,
|
||||||
rtcSession.memberships.length,
|
rtcSession.memberships.length,
|
||||||
sendInstantly,
|
sendInstantly,
|
||||||
rtcSession,
|
rtcSession,
|
||||||
@@ -363,11 +353,12 @@ export const GroupCallView: FC<Props> = ({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
leaveSoundContext,
|
||||||
widget,
|
widget,
|
||||||
rtcSession,
|
rtcSession,
|
||||||
|
room.roomId,
|
||||||
isPasswordlessUser,
|
isPasswordlessUser,
|
||||||
confineToRoom,
|
confineToRoom,
|
||||||
leaveSoundContext,
|
|
||||||
navigate,
|
navigate,
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export const DeveloperSettingsTab: FC<Props> = ({ client, livekitRoom }) => {
|
|||||||
<InputField
|
<InputField
|
||||||
id="useNewMembershipManager"
|
id="useNewMembershipManager"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
label={t("developer_mode.use_NewMembershipmanager")}
|
label={t("developer_mode.use_new_membership_manager")}
|
||||||
checked={!!useNewMembershipManager}
|
checked={!!useNewMembershipManager}
|
||||||
onChange={useCallback(
|
onChange={useCallback(
|
||||||
(event: ChangeEvent<HTMLInputElement>): void => {
|
(event: ChangeEvent<HTMLInputElement>): void => {
|
||||||
|
|||||||
+1
-6
@@ -77,11 +77,6 @@ export class ConnectionLostError extends ElementCallError {
|
|||||||
|
|
||||||
export class RTCSessionError extends ElementCallError {
|
export class RTCSessionError extends ElementCallError {
|
||||||
public constructor(code: ErrorCode, message: string) {
|
public constructor(code: ErrorCode, message: string) {
|
||||||
super(
|
super("RTCSession Error", code, ErrorCategory.RTC_SESSION_FAILURE, message);
|
||||||
"RTCSession Error",
|
|
||||||
code,
|
|
||||||
ErrorCategory.RTC_SESSION_FAILIOUR,
|
|
||||||
message,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -69,7 +69,7 @@ async function waitForSync(client: MatrixClient): Promise<void> {
|
|||||||
* otherwise rust crypto will throw since it is not ready to initialize a new session.
|
* otherwise rust crypto will throw since it is not ready to initialize a new session.
|
||||||
* If another client is running make sure `.logout()` is called before executing this function.
|
* If another client is running make sure `.logout()` is called before executing this function.
|
||||||
* @param clientOptions Object of options passed through to the client
|
* @param clientOptions Object of options passed through to the client
|
||||||
* @param restore If the rust crypto should be reset before the cient initialization or
|
* @param restore If the rust crypto should be reset before the client initialization or
|
||||||
* if the initialization should try to restore the crypto state from the indexDB.
|
* if the initialization should try to restore the crypto state from the indexDB.
|
||||||
* @returns The MatrixClient instance
|
* @returns The MatrixClient instance
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user