android: persist chats search history and recent in datastore
This commit is contained in:
@@ -577,3 +577,14 @@
|
||||
- empty query -> `Recent` list block (history-style chat rows),
|
||||
- non-empty query -> local matches + `Global search` and `Messages` sections.
|
||||
- Kept search action in chats top bar; while search mode is active, app bar switches to back-navigation + empty title (content drives the page).
|
||||
|
||||
### Step 91 - Search history/recent persistence + clear action
|
||||
- Added `ChatSearchRepository` abstraction and `DataStoreChatSearchRepository` implementation.
|
||||
- Persisted chats search metadata in `DataStore`:
|
||||
- recent opened chats list,
|
||||
- search history list (bounded).
|
||||
- Wired chats fullscreen search to persisted data:
|
||||
- green recent avatars strip now reads saved recent chats,
|
||||
- red `Recent` list now reads saved history with fallback.
|
||||
- Connected `Очистить` action to real history cleanup in `DataStore`.
|
||||
- On opening a chat from search results/messages/history, the chat is now stored in recent/history.
|
||||
|
||||
Reference in New Issue
Block a user