Drop the unused eslint-disable directives. [skip build]
Checks / checks (push) Successful in 2m7s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 10:39:41 +11:00
parent 73554ecf7f
commit 2db4fe4734
22 changed files with 0 additions and 52 deletions
-10
View File
@@ -128,7 +128,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
const setActiveThreadId = useSetAtom(activeThreadIdAtomFamily(room.roomId));
const setReplyDraft = useSetAtom(roomIdToReplyDraftAtomFamily(room.roomId));
// eslint-disable-next-line no-console
console.log('[ThreadView] Component mount/render', {
roomId: room.roomId,
threadRootId,
@@ -219,10 +218,8 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
// If thread doesn't exist, try to find it by checking if threadRootId is a root event
React.useEffect(() => {
if (!thread) {
// eslint-disable-next-line no-console
console.log('[ThreadView] Thread not found, checking if event exists in room timeline');
const rootEvent = room.findEventById(threadRootId);
// eslint-disable-next-line no-console
console.log('[ThreadView] Root event lookup', {
threadRootId,
rootEventFound: !!rootEvent,
@@ -240,9 +237,7 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
const getThreadEvents = useCallback((): MatrixEvent[] => {
const t = room.getThread(threadRootId);
if (!t) {
// eslint-disable-next-line no-console
console.log('[ThreadView] No thread found for ID:', threadRootId);
// eslint-disable-next-line no-console
console.log('[ThreadView] Attempting to find replies manually from room timeline');
// Fallback: search the room timeline for events that are replies to this thread
@@ -253,7 +248,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
return relations?.rel_type === 'm.thread' && relations?.event_id === threadRootId;
});
// eslint-disable-next-line no-console
console.log('[ThreadView] Manual search found', {
totalEventsInTimeline: allEvents.length,
repliesFound: threadReplies.length,
@@ -271,7 +265,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
const replies = [...t.events];
const liveTimelineEvents = t.liveTimeline?.getEvents() || [];
// eslint-disable-next-line no-console
console.log('[ThreadView] getThreadEvents', {
threadId: threadRootId,
repliesCount: replies.length,
@@ -297,7 +290,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
// Try using liveTimeline events if thread.events is empty but liveTimeline has events
if (replies.length === 0 && liveTimelineEvents.length > 0) {
// eslint-disable-next-line no-console
console.log('[ThreadView] Using liveTimeline events instead of thread.events');
return [...liveTimelineEvents];
}
@@ -337,7 +329,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
// Subscribe to thread and room timeline events.
useEffect(() => {
// eslint-disable-next-line no-console
console.log('[ThreadView] Effect running', {
threadId: threadRootId,
threadExists: !!thread,
@@ -349,7 +340,6 @@ export function ThreadView({ room, threadRootId }: ThreadViewProps) {
const handleUpdate = () => {
const newEvents = getThreadEvents();
// eslint-disable-next-line no-console
console.log('[ThreadView] handleUpdate - new events count:', newEvents.length);
setEvents(newEvents);
};