mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
The "where the live tail ends and paged history begins" boundary (one week) was copy-pasted across the gift-wrap + NIP-04 live tails, the backward history pager floor, and the prune's recent/old split — easy to drift out of lockstep (overlap = double-load, gap = missed messages). - Add DmHistoryTuning: one place for liveTailSeconds + recentKeepCount, read by AccountGiftWrapsEoseManager, both NIP-04 SubAssemblers, BackwardRelayPager, and Chatroom.pruneMessagesToTheLatestOnly. Drops the duplicated LIVE_TAIL_SECONDS / DEFAULT_LIVE_TAIL_SECONDS constants. - Log the prune-time window realignment under DMPagination, per scope ([giftwrap] / [rooms.nip04] / [convo.nip04]): relay count + newest pruned timestamp, so the rewind is observable in logcat. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>