Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
This commit is contained in:
@@ -270,7 +270,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
|
||||
repliesCount: replies.length,
|
||||
threadLength: t.length,
|
||||
hasRootEvent: !!t.rootEvent,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
initialEventsFetched: (t as any).initialEventsFetched,
|
||||
liveTimelineEventsCount: liveTimelineEvents.length,
|
||||
threadEventsMatch: replies.length === liveTimelineEvents.length,
|
||||
@@ -334,7 +333,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
|
||||
threadExists: !!thread,
|
||||
threadLength: thread?.length,
|
||||
eventsCount: thread?.events?.length,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
initialEventsFetched: (thread as any)?.initialEventsFetched,
|
||||
});
|
||||
|
||||
@@ -351,7 +349,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
|
||||
thread.on(ThreadEvent.NewReply, handleUpdate);
|
||||
thread.on(ThreadEvent.Update, handleUpdate);
|
||||
// Fires when initial events are loaded after the SDK paginates the thread.
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(thread as any).on(RoomEvent.TimelineReset, handleUpdate);
|
||||
|
||||
// Also listen to Timeline events which fire when events are added
|
||||
@@ -378,7 +375,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
|
||||
if (thread) {
|
||||
thread.off(ThreadEvent.NewReply, handleUpdate);
|
||||
thread.off(ThreadEvent.Update, handleUpdate);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(thread as any).off(RoomEvent.TimelineReset, handleUpdate);
|
||||
thread.off(RoomEvent.Timeline, handleUpdate);
|
||||
}
|
||||
@@ -484,7 +480,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
|
||||
(reactions.find(eventWithShortcode)?.getContent().shortcode as string | undefined);
|
||||
mx.sendEvent(
|
||||
room.roomId,
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
MessageEvent.Reaction as any,
|
||||
getReactionContent(targetEventId, key, rShortcode),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user