deleteConversation method

Future<void> deleteConversation(
  1. String uuid
)

Implementation

Future<void> deleteConversation(String uuid) async {
  final db = await _getDb();
  await db.transaction((txn) async {
    await txn.delete(
      _tableConversationName,
      where: '$_columnUuid = ?',
      whereArgs: [uuid],
    );
    await txn.delete(
      _tableMessageName,
      where: '$_columnUuid = ?',
      whereArgs: [uuid],
    );
  });
}