Skip to content

Conversation

@jackjackbits
Copy link
Collaborator

  • Extend MessageDeduplicator with configurable maxAge/maxCount params
  • Add timestampFor() method for content key time-window checks
  • Add record() method to store entries with specific timestamps
  • Replace ChatViewModel's custom contentLRU implementation with MessageDeduplicator
  • Remove ~35 lines of duplicate LRU code from ChatViewModel

This consolidates 2 separate deduplication implementations into one
reusable, thread-safe component.

claude and others added 4 commits November 25, 2025 01:19
- Extend MessageDeduplicator with configurable maxAge/maxCount params
- Add timestampFor() method for content key time-window checks
- Add record() method to store entries with specific timestamps
- Replace ChatViewModel's custom contentLRU implementation with MessageDeduplicator
- Remove ~35 lines of duplicate LRU code from ChatViewModel

This consolidates 2 separate deduplication implementations into one
reusable, thread-safe component.
…ationStateManager

Merge two singleton location managers into a unified LocationStateManager:
- CoreLocation permissions and channel computation
- Channel selection and teleport state tracking
- Bookmark persistence and friendly name resolution
- Reverse geocoding (shared, deduplicated)

Provides backward-compatible typealiases so existing code continues to work:
- typealias LocationChannelManager = LocationStateManager
- typealias GeohashBookmarksStore = LocationStateManager

Reduces 4 location-related files to 3 (keeping LocationNotesManager and
GeohashParticipantTracker separate due to different lifecycles).

Files: 2 deleted, 1 created (~525 lines -> ~420 lines)
Update call site to use resolveBookmarkNameIfNeeded instead of
resolveNameIfNeeded, which was renamed during the consolidation.
Allow tests to create instances with custom UserDefaults storage
for isolated testing of bookmark functionality.
@jackjackbits jackjackbits merged commit af28faa into main Nov 25, 2025
1 check passed
@jackjackbits jackjackbits deleted the claude/simplify-codebase-012QAJ8ihBcE4VzdufcixKHt branch November 25, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants