aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-07-30 00:00:56 +0200
committerfiaxh <git@mx.ax.lt>2018-07-30 00:00:56 +0200
commit2e5977df966779c0ae7247b8ad5343425bea1690 (patch)
tree9aa6d01730c7b44ef147d43ffa6bdd69b636acb9 /libdino/src
parent063d0146f922b1ed6388f40e05ae8eb0c547083d (diff)
downloaddino-2e5977df966779c0ae7247b8ad5343425bea1690.tar.gz
dino-2e5977df966779c0ae7247b8ad5343425bea1690.zip
Fire signal on subscription approval
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/presence_manager.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdino/src/service/presence_manager.vala b/libdino/src/service/presence_manager.vala
index 0525100b..e832687d 100644
--- a/libdino/src/service/presence_manager.vala
+++ b/libdino/src/service/presence_manager.vala
@@ -10,6 +10,7 @@ public class PresenceManager : StreamInteractionModule, Object {
public signal void show_received(Show show, Jid jid, Account account);
public signal void received_subscription_request(Jid jid, Account account);
+ public signal void received_subscription_approval(Jid jid, Account account);
private StreamInteractor stream_interactor;
private HashMap<Jid, HashMap<Jid, ArrayList<Show>>> shows = new HashMap<Jid, HashMap<Jid, ArrayList<Show>>>(Jid.hash_bare_func, Jid.equals_bare_func);
@@ -94,6 +95,9 @@ public class PresenceManager : StreamInteractionModule, Object {
}
received_subscription_request(jid, account);
});
+ stream_interactor.module_manager.get_module(account, Presence.Module.IDENTITY).received_subscription_approval.connect((stream, jid) => {
+ received_subscription_approval(jid, account);
+ });
}
private void on_received_available_show(Account account, Jid jid, string show) {