feat: нормальная работа с группами

This commit is contained in:
Jganenokk
2026-07-25 15:30:07 +07:00
parent 8e55675c5e
commit 20503c9b1a
12 changed files with 1157 additions and 88 deletions
+11
View File
@@ -883,6 +883,17 @@ class AppDatabase {
);
}
static Future<List<int>> loadContactIds(int accountId) async {
final db = await _instance;
final rows = await db.query(
'contacts',
columns: ['id'],
where: 'account_id = ?',
whereArgs: [accountId],
);
return [for (final r in rows) r['id'] as int];
}
static Future<Map<String, dynamic>?> loadContact(
int accountId,
int id,