Skip to content

Commit

Permalink
Update all non-major dependencies (#2479)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
renovate[bot] and toger5 authored Jul 17, 2024
1 parent 486430d commit e79cded
Show file tree
Hide file tree
Showing 6 changed files with 541 additions and 520 deletions.
2 changes: 1 addition & 1 deletion src/profile/useProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function useProfile(client: MatrixClient | undefined): UseProfile {
displayName,
avatarUrl: removeAvatar
? undefined
: mxcAvatarUrl ?? prev.avatarUrl,
: (mxcAvatarUrl ?? prev.avatarUrl),
loading: false,
success: true,
}));
Expand Down
2 changes: 1 addition & 1 deletion src/room/InCallView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export const InCallView: FC<InCallViewProps> = subscribe(
() =>
fullscreenItem ??
(noControls
? items.find((item) => item.isSpeaker) ?? items.at(0) ?? null
? (items.find((item) => item.isSpeaker) ?? items.at(0) ?? null)
: null),
[fullscreenItem, noControls, items],
);
Expand Down
2 changes: 1 addition & 1 deletion src/room/MuteStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function useMuteState(
): MuteState {
const [enabled, setEnabled] = useReactiveState<boolean | undefined>(
(prev) =>
device.available.length > 0 ? prev ?? enabledByDefault() : undefined,
device.available.length > 0 ? (prev ?? enabledByDefault()) : undefined,
[device],
);
return useMemo(
Expand Down
4 changes: 2 additions & 2 deletions src/room/useFullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function useFullscreen<T>(items: TileDescriptor<T>[]): {
(prevItem) =>
prevItem == null
? null
: items.find((i) => i.id === prevItem.id) ?? null,
: (items.find((i) => i.id === prevItem.id) ?? null),
[items],
);

Expand All @@ -79,7 +79,7 @@ export function useFullscreen<T>(items: TileDescriptor<T>[]): {
(itemId: string) => {
setFullscreenItem(
latestFullscreenItem.current === null
? latestItems.current.find((i) => i.id === itemId) ?? null
? (latestItems.current.find((i) => i.id === itemId) ?? null)
: null,
);
},
Expand Down
4 changes: 2 additions & 2 deletions src/settings/ProfileSettingsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export const ProfileSettingsTab: FC<Props> = ({ client }) => {
const avatar = data.get("avatar");

const avatarSize =
typeof avatar == "string" ? avatar.length : avatar?.size ?? 0;
typeof avatar == "string" ? avatar.length : (avatar?.size ?? 0);
const displayName =
typeof displayNameDataEntry == "string"
? displayNameDataEntry
: displayNameDataEntry?.name ?? null;
: (displayNameDataEntry?.name ?? null);

if (!displayName) {
return;
Expand Down
Loading

0 comments on commit e79cded

Please sign in to comment.