mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Fix loading of encryption type
The column of the encryption type in the result is 4, not 3.
Fixup of 6375b2719f
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
parent
7eee96d5c6
commit
1d41a328f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user