Files
Amber/app
Claude 80b3069e45 Decouple error message display from AccountStateViewModel
Extract toast/error infrastructure into a standalone ToastManager singleton
so composables and background services no longer need to reference
AccountStateViewModel just to show error dialogs.

- Add ToastManager.kt with ToastMsg sealed class hierarchy and MutableSharedFlow
- Remove toast methods and ToastMsg types from AccountStateViewModel
- Update DisplayErrorMessages() to take no parameter and collect from ToastManager
- Replace AmberListenerSingleton.accountStateViewModel field with direct ToastManager calls
- Update Amber.kt and BunkerRequestUtils.kt to use ToastManager directly
- Remove accountStateViewModel parameter from composables that only used it for toasts:
  NewApplicationScreen, ConfirmPinScreen, FeedbackScreen, IntentSingleEventHomeScreen,
  NewNsecBunkerScreen, EditConfigurationScreen, DefaultProfileRelaysScreen, EditRelaysDialog,
  IncomingRequestScreen, and update MainScreen callers accordingly

https://claude.ai/code/session_01Jk3XjYxVsPZrT88aH6c6cP
2026-03-01 08:56:34 +00:00
..
2024-03-01 06:56:32 -03:00
2023-07-26 16:44:33 -03:00
2026-02-25 13:25:11 -03:00