This commit is contained in:
Half-Shot 2025-12-19 14:46:51 +00:00
parent 335498d56c
commit c3bcc54535
2 changed files with 7 additions and 6 deletions

View File

@ -46,6 +46,7 @@ import { debounce, throttle } from "lodash";
import { CryptoEvent } from "matrix-js-sdk/src/crypto-api";
import { type ViewRoomOpts } from "@matrix-org/react-sdk-module-api/lib/lifecycles/RoomViewLifecycle";
import { type RoomViewProps } from "@element-hq/element-web-module-api";
import { RoomStatusBarView, useCreateAutoDisposedViewModel } from "@element-hq/web-shared-components";
import shouldHideEvent from "../../shouldHideEvent";
import { _t } from "../../languageHandler";
@ -135,7 +136,6 @@ import { type FocusMessageSearchPayload } from "../../dispatcher/payloads/FocusM
import { isRoomEncrypted } from "../../hooks/useIsEncrypted";
import { type RoomViewStore } from "../../stores/RoomViewStore.tsx";
import { RoomStatusBarViewModel } from "../../viewmodels/room/RoomStatusBar.ts";
import { RoomStatusBarView, useCreateAutoDisposedViewModel } from "@element-hq/web-shared-components";
const DEBUG = false;
const PREVENT_MULTIPLE_JITSI_WITHIN = 30_000;
@ -396,7 +396,7 @@ function RoomStatusBarWrappedView(props: ConstructorParameters<typeof RoomStatus
}
});
}
}, [vm]);
}, [vm, props]);
return <RoomStatusBarView vm={vm} />;
}

View File

@ -13,12 +13,13 @@ import {
import {
ClientEvent,
SyncState,
MatrixClient,
type MatrixClient,
type Room,
MatrixError,
type MatrixError,
RoomEvent,
EventStatus,
} from "matrix-js-sdk/src/matrix";
import { MatrixClientPeg } from "../../MatrixClientPeg";
import Resend from "../../Resend";
import { Action } from "../../dispatcher/actions";
@ -148,11 +149,11 @@ export class RoomStatusBarViewModel
props.room.on(RoomEvent.LocalEchoUpdated, this.onRoomLocalEchoUpdated);
}
private readonly onClientSync = () => {
private readonly onClientSync = (): void => {
this.setSnapshot();
};
private readonly onRoomLocalEchoUpdated = () => {
private readonly onRoomLocalEchoUpdated = (): void => {
this.setSnapshot();
};