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:
@@ -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> {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user