mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 00:45:21 +00:00
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>
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.