Update all non-major dependencies (#12815)

* Update all non-major dependencies

* Prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot]
2024-07-24 10:53:13 +00:00
committed by GitHub
parent 57f30f18d0
commit bacf738ac8
8 changed files with 33 additions and 49 deletions

View File

@@ -969,8 +969,8 @@ class TimelinePanel extends React.Component<IProps, IState> {
private readMarkerTimeout(readMarkerPosition: number | null): number {
return readMarkerPosition === 0
? this.context?.readMarkerInViewThresholdMs ?? this.state.readMarkerInViewThresholdMs
: this.context?.readMarkerOutOfViewThresholdMs ?? this.state.readMarkerOutOfViewThresholdMs;
? (this.context?.readMarkerInViewThresholdMs ?? this.state.readMarkerInViewThresholdMs)
: (this.context?.readMarkerOutOfViewThresholdMs ?? this.state.readMarkerOutOfViewThresholdMs);
}
private async updateReadMarkerOnUserActivity(): Promise<void> {

View File

@@ -143,7 +143,7 @@ const BaseCard: React.FC<IProps> = forwardRef<HTMLDivElement, IProps>(
{header}
</Text>
) : (
header ?? <div className="mx_BaseCard_header_spacer" />
(header ?? <div className="mx_BaseCard_header_spacer" />)
)}
{closeButton}
</div>

View File

@@ -253,7 +253,7 @@ export default class RoomProfileSettings extends React.Component<IProps, IState>
avatar={
this.state.avatarRemovalPending
? undefined
: this.state.avatarFile ?? this.state.originalAvatarUrl ?? undefined
: (this.state.avatarFile ?? this.state.originalAvatarUrl ?? undefined)
}
avatarAltText={_t("room_settings|general|avatar_field_label")}
disabled={!this.state.canSetAvatar}

View File

@@ -242,9 +242,11 @@ function parseNode(n: Node, pc: PartCreator, opts: IParseOptions, mkListItem?: (
if ((n as Element).hasAttribute("data-mx-maths")) {
const delims = SdkConfig.get().latex_maths_delims;
const delimLeft =
n.nodeName === "SPAN" ? delims?.inline?.left ?? "\\(" : delims?.display?.left ?? "\\[";
n.nodeName === "SPAN" ? (delims?.inline?.left ?? "\\(") : (delims?.display?.left ?? "\\[");
const delimRight =
n.nodeName === "SPAN" ? delims?.inline?.right ?? "\\)" : delims?.display?.right ?? "\\]";
n.nodeName === "SPAN"
? (delims?.inline?.right ?? "\\)")
: (delims?.display?.right ?? "\\]");
const tex = (n as Element).getAttribute("data-mx-maths");
return pc.plainWithEmoji(`${delimLeft}${tex}${delimRight}`);

View File

@@ -62,9 +62,9 @@ const findRoom = (roomIdOrAlias: string): Room | null => {
const client = MatrixClientPeg.safeGet();
return roomIdOrAlias[0] === "#"
? client.getRooms().find((r) => {
? (client.getRooms().find((r) => {
return r.getCanonicalAlias() === roomIdOrAlias || r.getAltAliases().includes(roomIdOrAlias);
}) ?? null
}) ?? null)
: client.getRoom(roomIdOrAlias);
};