Files
bitchat/bitchat/ViewModels/Extensions
jackandClaude Opus 4.5 ec54877140 Remove dormant wake attempt on Tor foreground restart
Arti's dormant/wake FFI functions are no-op stubs that don't actually
implement dormant mode. The app was wasting 2.5-12 seconds trying to
wake from a dormant state that doesn't exist before falling back to
a full restart.

This change:
- Removes wakeFromDormant() call and function
- Simplifies goDormantOnBackground() to just mark state as not ready
- Goes straight to restartArti() on foreground, eliminating the delay

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 10:59:24 -10:00
..

ChatViewModel Extensions

This directory contains extensions to ChatViewModel to modularize its functionality.

  • ChatViewModel+Tor.swift: Handles Tor lifecycle events and notifications.
  • ChatViewModel+PrivateChat.swift: Manages private chat logic, media transfers (images, voice notes), and file handling.
  • ChatViewModel+Nostr.swift: Contains all logic related to Nostr integration, Geohash channels, and Nostr identity management.

The main ChatViewModel.swift retains core state, initialization, and coordination logic.