mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-07 21:26:13 +02:00
cleanup
This commit is contained in:
parent
335498d56c
commit
c3bcc54535
@ -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} />;
|
||||
}
|
||||
|
||||
@ -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();
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user