Fix typecheck errors

This commit is contained in:
7w1 committed 2026-06-21 22:21:58 -05:00
1 parent 412aaf078c
commit bd84796229
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import {
toRem,
} from 'folds';
import type { EventTimelineSet, MatrixEvent, Room, Thread } from '$types/matrix-sdk';
import { NotificationCountType, RoomEvent, ThreadEvent } from '$types/matrix-sdk';
import { EventType, NotificationCountType, RoomEvent, ThreadEvent } from '$types/matrix-sdk';
import { useAtomValue } from 'jotai';
import type { HTMLReactParserOptions } from 'html-react-parser';
import type { Opts as LinkifyOpts } from 'linkifyjs';
+2 -2
View File
@@ -410,13 +410,13 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
room.on(RoomEvent.Redaction, onRedaction);
room.on(ThreadEvent.Update, onThreadUpdate);
room.on(ThreadEvent.NewReply, onThreadUpdate);
room.on(MatrixEventEvent.Decrypted, onDecrypted);
mx.on(MatrixEventEvent.Decrypted, onDecrypted);
return () => {
mx.off(RoomEvent.Timeline, onTimeline);
room.removeListener(RoomEvent.Redaction, onRedaction);
room.removeListener(ThreadEvent.Update, onThreadUpdate);
room.removeListener(ThreadEvent.NewReply, onThreadUpdate);
room.removeListener(MatrixEventEvent.Decrypted, onDecrypted);
mx.removeListener(MatrixEventEvent.Decrypted, onDecrypted);
};
}, [mx, room, threadRootId]);