From 0b92ee2a113ca8da2d3a4d4b06056f291738b5fe Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 25 Mar 2026 19:19:29 +0100 Subject: Fix wrongly using message ids for MUC corrections; store original message db ids --- libdino/src/service/database.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libdino/src/service/database.vala') diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 58ff3b14..54f5ab42 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -7,7 +7,7 @@ using Dino.Entities; namespace Dino { public class Database : Qlite.Database { - private const int VERSION = 30; + private const int VERSION = 31; public class AccountTable : Table { public Column id = new Column.Integer("id") { primary_key = true, auto_increment = true }; @@ -134,10 +134,11 @@ public class Database : Qlite.Database { public Column id = new Column.Integer("id") { primary_key = true, auto_increment = true }; public Column message_id = new Column.Integer("message_id") { unique=true }; public Column to_stanza_id = new Column.Text("to_stanza_id"); + public Column to_message_db_id = new Column.Integer("to_message_db_id") { min_version=31 }; internal MessageCorrectionTable(Database db) { base(db, "message_correction"); - init({id, message_id, to_stanza_id}); + init({id, message_id, to_stanza_id, to_message_db_id}); index("message_correction_to_stanza_id_idx", {to_stanza_id}); } } -- cgit v1.3