Integrate feedback tables with channel and sync lifecycle

This commit is contained in:
evgeny committed 2026-10-06 20:06:39 +02:00
1 parent 8121f93d2e
commit 982e5a06ab
3 files changed
+20

No files matched your search

+4
View File
@@ -491,6 +491,10 @@ int topo_node_sqlite_channel_delete(sqlite3* db, const char* channel_id) {
sqlite3_exec(db, sql, NULL, NULL, NULL);
snprintf(sql, sizeof(sql), "DROP TABLE IF EXISTS \"%s\"", msg_full);
sqlite3_exec(db, sql, NULL, NULL, NULL);
snprintf(sql, sizeof(sql), "DROP TABLE IF EXISTS \"feedback_%s\"", msg_tbl);
if (sqlite3_exec(db, sql, NULL, NULL, NULL) != SQLITE_OK) {
DEBUG_ERROR(DEBUG_CATEGORY_CHAT_SYNC, "feedback: delete channel=%s: %s", channel_id, sqlite3_errmsg(db)); return -1;
}
/* 2. delete channels row (вместе с канальными privkey) */
sqlite3_stmt* st = NULL;