temp: disable mark-as-read reactions loading due to queryEvents hanging

Temporarily skip loading mark-as-read reactions to unblock the reads feature.
Focus on getting reading progress working first.

TODO: Debug why queryEvents hangs when querying kind:7 and kind:17 reactions.
The Promise never resolves even though we're not using timeouts.
This commit is contained in:
Gigi
2025-10-20 00:38:14 +02:00
parent 94f1f9035b
commit cc60f9584a

View File

@@ -250,13 +250,15 @@ class ReadingProgressController {
// Load mark-as-read reactions in background (non-blocking, fire-and-forget)
console.log('[readingProgress] Starting background relay query for mark-as-read reactions...')
this.loadMarkAsReadReactions(relayPool, eventStore, pubkey, startGeneration)
.then(() => {
console.log('[readingProgress] Mark-as-read reactions loading complete')
})
.catch((err) => {
console.warn('[readingProgress] Mark-as-read reactions loading failed:', err)
})
// TODO: Fix queryEvents hanging for reaction queries
// this.loadMarkAsReadReactions(relayPool, eventStore, pubkey, startGeneration)
// .then(() => {
// console.log('[readingProgress] Mark-as-read reactions loading complete')
// })
// .catch((err) => {
// console.warn('[readingProgress] Mark-as-read reactions loading failed:', err)
// })
console.log('[readingProgress] [SKIPPED] Mark-as-read reactions loading disabled for now')
} catch (err) {
console.error('📊 [ReadingProgress] Failed to setup:', err)