Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-12-06 00:15:08 +00:00
parent a9a3751f3e
commit c299d2a0d1
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D
281 changed files with 458 additions and 377 deletions

View file

@ -251,7 +251,7 @@ interface LocalRoomViewProps {
localRoom: LocalRoom;
resizeNotifier: ResizeNotifier;
permalinkCreator: RoomPermalinkCreator;
roomView: RefObject<HTMLElement>;
roomView: RefObject<HTMLElement | null>;
onFileDrop: (dataTransfer: DataTransfer) => Promise<void>;
mainSplitContentType: MainSplitContentType;
}
@ -262,7 +262,7 @@ interface LocalRoomViewProps {
* @param {LocalRoomViewProps} props Room view props
* @returns {ReactElement}
*/
function LocalRoomView(props: LocalRoomViewProps): ReactElement {
function LocalRoomView(props: LocalRoomViewProps): ReactElement<any> {
const context = useScopedRoomContext("room");
const room = context.room as LocalRoom;
const encryptionEvent = props.localRoom.currentState.getStateEvents(EventType.RoomEncryption)[0];
@ -280,8 +280,8 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
});
};
let statusBar: ReactElement | null = null;
let composer: ReactElement | null = null;
let statusBar: ReactElement<any> | null = null;
let composer: ReactElement<any> | null = null;
if (room.isError) {
const buttons = (
@ -340,7 +340,7 @@ interface ILocalRoomCreateLoaderProps {
* @param {ILocalRoomCreateLoaderProps} props Room view props
* @return {ReactElement}
*/
function LocalRoomCreateLoader(props: ILocalRoomCreateLoaderProps): ReactElement {
function LocalRoomCreateLoader(props: ILocalRoomCreateLoaderProps): ReactElement<any> {
const text = _t("room|creating_room_text", { names: props.names });
return (
<div className="mx_RoomView mx_RoomView--local">