fix: фиксики

This commit is contained in:
Jganenokk
2026-07-23 21:14:33 +07:00
parent e39cb9dec9
commit d0b27803bf
6 changed files with 103 additions and 99 deletions
+14
View File
@@ -883,6 +883,20 @@ class AppDatabase {
);
}
static Future<Map<String, dynamic>?> loadContact(
int accountId,
int id,
) async {
final db = await _instance;
final rows = await db.query(
'contacts',
where: 'account_id = ? AND id = ?',
whereArgs: [accountId, id],
limit: 1,
);
return rows.isEmpty ? null : rows.first;
}
static Future<void> deleteContact(int accountId, int id) async {
final db = await _instance;
await db.delete(