удаление чатов и фикс загрузки ботов в chatsэ

This commit is contained in:
Jganenok
2026-05-17 18:29:28 +07:00
parent 74bad21635
commit 3aa6cdb52c
6 changed files with 841 additions and 364 deletions
+3
View File
@@ -5,6 +5,7 @@ import '../api.dart';
import '../../core/protocol/opcode_map.dart';
import '../../core/storage/app_database.dart';
import '../../models/attachment.dart';
import 'chats.dart' show ChatsModule;
class ContactCache {
static final Map<int, String> _nameCache = {};
@@ -21,6 +22,7 @@ class ContactCache {
static String? get(int id) => _nameCache[id];
static String? getAvatar(int id) => _avatarCache[id];
static Set<String>? getOptions(int id) => _optionsCache[id];
static bool isOfficial(int id) => _optionsCache[id]?.contains('OFFICIAL') ?? false;
}
@@ -641,6 +643,7 @@ class MessagesModule {
ContactCache.putOptions(contactId, rawOpts.whereType<String>().toSet());
}
ChatsModule.applyContactUpdate(contactId);
return fullName;
}
}