feat: аватар после входа, кнопка выхода в настройках

This commit is contained in:
klockky
2026-05-26 17:13:26 +03:00
parent 221487ca28
commit a6aab0a7e3
5 changed files with 127 additions and 64 deletions
+8
View File
@@ -24,6 +24,12 @@ class ContactCache {
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;
static void clear() {
_nameCache.clear();
_avatarCache.clear();
_optionsCache.clear();
}
}
class TranscriptionResult {
@@ -52,6 +58,8 @@ class TranscriptionCache {
static TranscriptionResult? get(String messageId) => _cache[messageId];
static bool has(String messageId) => _cache.containsKey(messageId);
static void clear() => _cache.clear();
}
class FileHistoryEntry {