mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-26 11:56:25 -08:00
Fix typecheck errors
This commit is contained in:
1 parent
412aaf078c
commit
bd84796229
2 files changed
+3
-3
No files matched your search
@@ -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';
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user