aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/roster_manager.vala
diff options
context:
space:
mode:
authorSamuel Hand <samuel.d.hand@gmail.com>2018-08-10 01:40:20 +0100
committerSamuel Hand <samuel.d.hand@gmail.com>2018-08-10 01:40:20 +0100
commit8ebc2c5dd333ce19c9e0592ee1feb8eed6e1a48f (patch)
tree4f5a7b77dc51470fa59b67f66e80beb7bb798901 /libdino/src/service/roster_manager.vala
parent36cc8b039338442512f0e86d9487d951b5f2c6e3 (diff)
downloaddino-8ebc2c5dd333ce19c9e0592ee1feb8eed6e1a48f.tar.gz
dino-8ebc2c5dd333ce19c9e0592ee1feb8eed6e1a48f.zip
Fix mutual subscription detection
Diffstat (limited to 'libdino/src/service/roster_manager.vala')
-rw-r--r--libdino/src/service/roster_manager.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdino/src/service/roster_manager.vala b/libdino/src/service/roster_manager.vala
index 23bc8b76..5181b90e 100644
--- a/libdino/src/service/roster_manager.vala
+++ b/libdino/src/service/roster_manager.vala
@@ -11,6 +11,7 @@ public class RosterManager : StreamInteractionModule, Object {
public signal void removed_roster_item(Account account, Jid jid, Roster.Item roster_item);
public signal void updated_roster_item(Account account, Jid jid, Roster.Item roster_item);
+ public signal void mutual_subscription(Account account, Jid jid);
private StreamInteractor stream_interactor;
private Database db;
@@ -66,6 +67,10 @@ public class RosterManager : StreamInteractionModule, Object {
stream_interactor.module_manager.get_module(account, Roster.Module.IDENTITY).item_updated.connect_after( (stream, roster_item) => {
on_roster_item_updated(account, roster_item);
});
+
+ stream_interactor.module_manager.get_module(account, Roster.Module.IDENTITY).mutual_subscription.connect_after( (stream, jid) => {
+ mutual_subscription(account, jid);
+ });
}
private void on_roster_item_updated(Account account, Roster.Item roster_item) {