feat: Add chat seperator and restore last viewed chat on restart
This commit is contained in:
@@ -6,12 +6,15 @@ Offline-first storage layer that keeps messages, users, rooms, reactions, bans,
|
||||
|
||||
```
|
||||
persistence/
|
||||
├── index.ts Barrel (exports DatabaseService)
|
||||
├── app-resume.storage.ts localStorage helpers for launch settings and last viewed chat
|
||||
├── index.ts Barrel (exports DatabaseService and storage helpers)
|
||||
├── database.service.ts Platform-agnostic facade
|
||||
├── browser-database.service.ts IndexedDB backend (web)
|
||||
└── electron-database.service.ts IPC/SQLite backend (desktop)
|
||||
```
|
||||
|
||||
`app-resume.storage.ts` is the one exception to the `DatabaseService` facade. It stores lightweight UI-level launch preferences and the last viewed room/channel snapshot in `localStorage`, which would be unnecessary overhead to route through IndexedDB or SQLite.
|
||||
|
||||
## Platform routing
|
||||
|
||||
```mermaid
|
||||
|
||||
Reference in New Issue
Block a user