банеры

This commit is contained in:
Jganenokk
2026-07-27 23:36:50 +07:00
parent 9e579f45cf
commit d7e6491213
11 changed files with 583 additions and 16 deletions
+10
View File
@@ -727,6 +727,16 @@ class AppDatabase {
);
}
static bool chatRowIsInList(Map<String, dynamic> row) {
final value = row['in_list'];
return value is! int || value != 0;
}
static Future<bool> isChatInList(int accountId, int chatId) async {
final rows = await loadChat(accountId, chatId);
return rows.isNotEmpty && chatRowIsInList(rows.first);
}
static Future<List<Map<String, dynamic>>> loadChats(
int accountId, {
bool includeHidden = false,