From 1d41a328f15f47fb77eb4875c0064795bed962d7 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 30 Oct 2023 16:06:37 +0100 Subject: [PATCH] Fix loading of encryption type The column of the encryption type in the result is 4, not 3. Fixup of 6375b2719fd16cbedf531ff197f6d82ffbcc873a Signed-off-by: Steffen Jaeckel --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.c b/src/database.c index 45eeb4c4..152a7a4c 100644 --- a/src/database.c +++ b/src/database.c @@ -290,7 +290,7 @@ log_database_get_previous_chat(const gchar* const contact_barejid, const char* s char* date = (char*)sqlite3_column_text(stmt, 1); char* from = (char*)sqlite3_column_text(stmt, 2); char* type = (char*)sqlite3_column_text(stmt, 3); - char* encryption = (char*)sqlite3_column_text(stmt, 3); + char* encryption = (char*)sqlite3_column_text(stmt, 4); ProfMessage* msg = message_init(); msg->from_jid = jid_create(from);