Skip to content

Commit e79cded

Browse files
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>
1 parent 486430d commit e79cded

File tree

6 files changed

+541
-520
lines changed

6 files changed

+541
-520
lines changed

src/profile/useProfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function useProfile(client: MatrixClient | undefined): UseProfile {
118118
displayName,
119119
avatarUrl: removeAvatar
120120
? undefined
121-
: mxcAvatarUrl ?? prev.avatarUrl,
121+
: (mxcAvatarUrl ?? prev.avatarUrl),
122122
loading: false,
123123
success: true,
124124
}));

src/room/InCallView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const InCallView: FC<InCallViewProps> = subscribe(
254254
() =>
255255
fullscreenItem ??
256256
(noControls
257-
? items.find((item) => item.isSpeaker) ?? items.at(0) ?? null
257+
? (items.find((item) => item.isSpeaker) ?? items.at(0) ?? null)
258258
: null),
259259
[fullscreenItem, noControls, items],
260260
);

src/room/MuteStates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function useMuteState(
5353
): MuteState {
5454
const [enabled, setEnabled] = useReactiveState<boolean | undefined>(
5555
(prev) =>
56-
device.available.length > 0 ? prev ?? enabledByDefault() : undefined,
56+
device.available.length > 0 ? (prev ?? enabledByDefault()) : undefined,
5757
[device],
5858
);
5959
return useMemo(

src/room/useFullscreen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function useFullscreen<T>(items: TileDescriptor<T>[]): {
6565
(prevItem) =>
6666
prevItem == null
6767
? null
68-
: items.find((i) => i.id === prevItem.id) ?? null,
68+
: (items.find((i) => i.id === prevItem.id) ?? null),
6969
[items],
7070
);
7171

@@ -79,7 +79,7 @@ export function useFullscreen<T>(items: TileDescriptor<T>[]): {
7979
(itemId: string) => {
8080
setFullscreenItem(
8181
latestFullscreenItem.current === null
82-
? latestItems.current.find((i) => i.id === itemId) ?? null
82+
? (latestItems.current.find((i) => i.id === itemId) ?? null)
8383
: null,
8484
);
8585
},

src/settings/ProfileSettingsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ export const ProfileSettingsTab: FC<Props> = ({ client }) => {
5454
const avatar = data.get("avatar");
5555

5656
const avatarSize =
57-
typeof avatar == "string" ? avatar.length : avatar?.size ?? 0;
57+
typeof avatar == "string" ? avatar.length : (avatar?.size ?? 0);
5858
const displayName =
5959
typeof displayNameDataEntry == "string"
6060
? displayNameDataEntry
61-
: displayNameDataEntry?.name ?? null;
61+
: (displayNameDataEntry?.name ?? null);
6262

6363
if (!displayName) {
6464
return;

0 commit comments

Comments
 (0)