Update all non-major dependencies (#2479)
* Update all non-major dependencies * prettier fixes --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Timo <toger5@hotmail.de>
This commit is contained in:
@@ -118,7 +118,7 @@ export function useProfile(client: MatrixClient | undefined): UseProfile {
|
|||||||
displayName,
|
displayName,
|
||||||
avatarUrl: removeAvatar
|
avatarUrl: removeAvatar
|
||||||
? undefined
|
? undefined
|
||||||
: mxcAvatarUrl ?? prev.avatarUrl,
|
: (mxcAvatarUrl ?? prev.avatarUrl),
|
||||||
loading: false,
|
loading: false,
|
||||||
success: true,
|
success: true,
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ export const InCallView: FC<InCallViewProps> = subscribe(
|
|||||||
() =>
|
() =>
|
||||||
fullscreenItem ??
|
fullscreenItem ??
|
||||||
(noControls
|
(noControls
|
||||||
? items.find((item) => item.isSpeaker) ?? items.at(0) ?? null
|
? (items.find((item) => item.isSpeaker) ?? items.at(0) ?? null)
|
||||||
: null),
|
: null),
|
||||||
[fullscreenItem, noControls, items],
|
[fullscreenItem, noControls, items],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ function useMuteState(
|
|||||||
): MuteState {
|
): MuteState {
|
||||||
const [enabled, setEnabled] = useReactiveState<boolean | undefined>(
|
const [enabled, setEnabled] = useReactiveState<boolean | undefined>(
|
||||||
(prev) =>
|
(prev) =>
|
||||||
device.available.length > 0 ? prev ?? enabledByDefault() : undefined,
|
device.available.length > 0 ? (prev ?? enabledByDefault()) : undefined,
|
||||||
[device],
|
[device],
|
||||||
);
|
);
|
||||||
return useMemo(
|
return useMemo(
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export function useFullscreen<T>(items: TileDescriptor<T>[]): {
|
|||||||
(prevItem) =>
|
(prevItem) =>
|
||||||
prevItem == null
|
prevItem == null
|
||||||
? null
|
? null
|
||||||
: items.find((i) => i.id === prevItem.id) ?? null,
|
: (items.find((i) => i.id === prevItem.id) ?? null),
|
||||||
[items],
|
[items],
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ export function useFullscreen<T>(items: TileDescriptor<T>[]): {
|
|||||||
(itemId: string) => {
|
(itemId: string) => {
|
||||||
setFullscreenItem(
|
setFullscreenItem(
|
||||||
latestFullscreenItem.current === null
|
latestFullscreenItem.current === null
|
||||||
? latestItems.current.find((i) => i.id === itemId) ?? null
|
? (latestItems.current.find((i) => i.id === itemId) ?? null)
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -54,11 +54,11 @@ export const ProfileSettingsTab: FC<Props> = ({ client }) => {
|
|||||||
const avatar = data.get("avatar");
|
const avatar = data.get("avatar");
|
||||||
|
|
||||||
const avatarSize =
|
const avatarSize =
|
||||||
typeof avatar == "string" ? avatar.length : avatar?.size ?? 0;
|
typeof avatar == "string" ? avatar.length : (avatar?.size ?? 0);
|
||||||
const displayName =
|
const displayName =
|
||||||
typeof displayNameDataEntry == "string"
|
typeof displayNameDataEntry == "string"
|
||||||
? displayNameDataEntry
|
? displayNameDataEntry
|
||||||
: displayNameDataEntry?.name ?? null;
|
: (displayNameDataEntry?.name ?? null);
|
||||||
|
|
||||||
if (!displayName) {
|
if (!displayName) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user