fix(search): поиск по сообщениям через chatSearch + просмотр каналов из поиска

This commit is contained in:
klockky
2026-06-21 13:37:31 +00:00
parent 23a1bed46a
commit 721515729c
4 changed files with 134 additions and 35 deletions
@@ -409,6 +409,11 @@ class _ChatScreenState extends State<ChatScreen>
}
try {
final cachedRows = await AppDatabase.loadChat(_myId, widget.chatId);
if (cachedRows.isEmpty) {
await ChatsModule.ensureChatCached(api, _myId, widget.chatId);
await ChatsModule.subscribeChat(api, widget.chatId);
}
final serverMessages = await messagesModule.fetchHistory(
_myId,
widget.chatId,