From 6322ed819e47d9c3371f214e4209d01cac1abfcf Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 28 Dec 2024 20:29:52 +0100 Subject: Show banner when contact is not yet subscribed --- libdino/src/service/database.vala | 5 +++-- libdino/src/service/roster_manager.vala | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'libdino') diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index bfa76890..06676951 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 = 28; + private const int VERSION = 29; public class AccountTable : Table { public Column id = new Column.Integer("id") { primary_key = true, auto_increment = true }; @@ -345,10 +345,11 @@ public class Database : Qlite.Database { public Column jid = new Column.Text("jid"); public Column handle = new Column.Text("name"); public Column subscription = new Column.Text("subscription"); + public Column ask = new Column.Text("ask") { min_version=29 }; internal RosterTable(Database db) { base(db, "roster"); - init({account_id, jid, handle, subscription}); + init({account_id, jid, handle, subscription, ask}); unique({account_id, jid}, "IGNORE"); } } diff --git a/libdino/src/service/roster_manager.vala b/libdino/src/service/roster_manager.vala index 8d9d91fb..6ddcda68 100644 --- a/libdino/src/service/roster_manager.vala +++ b/libdino/src/service/roster_manager.vala @@ -133,6 +133,7 @@ public class RosterStoreImpl : Roster.Storage, Object { .value(db.roster.jid, item.jid.to_string(), true) .value(db.roster.handle, item.name) .value(db.roster.subscription, item.subscription) + .value(db.roster.ask, item.ask) .perform(); } -- cgit v1.2.3-70-g09d2