Skip to content

Commit d452a8d

Browse files
committed
sdf
1 parent be3a451 commit d452a8d

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

NOSTR_SYNC.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -177,28 +177,6 @@ DB apply rule:
177177
3. Reconcile feed groups by name (create/update)
178178
4. Rewrite membership for each group from merged membership set
179179

180-
## DAO Changes - Exact Purpose
181-
182-
A detailed beginner explanation is in `NOSTR_SYNC_DAO_README.md`.
183-
184-
Summary of exact DAO additions:
185-
186-
1. `StreamHistoryDAO.getHistorySortedByIdBlocking()`
187-
2. `SubscriptionDAO.getAllBlocking()`
188-
3. `FeedGroupDAO.getAllBlocking()`
189-
4. `FeedGroupDAO.getSubscriptionIdsForBlocking(groupId)`
190-
5. `StreamStateDAO.getAllBlocking()`
191-
6. `StreamStateDAO.getStateBlocking(streamId)`
192-
193-
Why these were needed:
194-
195-
1. The sync merge pipeline in `NostrSyncManager` is synchronous map-building logic.
196-
2. It needs immediate one-shot snapshots (history rows, stream progress rows,
197-
subscriptions, groups, group memberships).
198-
3. It also needs current persisted stream state for delta-based progress sync triggers.
199-
4. Existing `Flowable` APIs are reactive streams, not convenient for this synchronous merge/apply phase.
200-
5. Blocking reads are called from IO scheduler context (not UI thread), then writes are done transactionally.
201-
202180
## Robustness and UX Fixes Included
203181

204182
1. Crash fixes around Nostr Sync screen initialization.

0 commit comments

Comments
 (0)