Use SqliteDb::destroy instead of plain unlink.

This commit is contained in:
levlam 2022-09-18 21:35:16 +03:00
parent cb70993b90
commit 297594af7e

View File

@ -288,7 +288,7 @@ Status TdDb::init_sqlite(const TdParameters &parameters, const DbKey &key, const
bool use_dialog_db = parameters.use_message_db;
bool use_message_db = parameters.use_message_db;
if (!use_sqlite) {
unlink(sql_database_path).ignore();
SqliteDb::destroy(sql_database_path).ignore();
return Status::OK();
}