🚀 Launch bug hotfix +79

This commit is contained in:
2025-03-09 15:22:25 +08:00
parent 88396647f3
commit 9d4ce6ca8c
3 changed files with 12 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class UserDirectoryProvider {
Future<List<SnAccount?>> listAccount(Iterable<dynamic> id) async {
// In-memory cache
if (_cacheExpiredAt != null && _cacheExpiredAt!.isAfter(DateTime.now())) {
if (_cacheExpiredAt != null && _cacheExpiredAt!.isBefore(DateTime.now())) {
_cache.clear();
_cacheExpiredAt = DateTime.now().add(const Duration(hours: 1));
} else {