diff options
author | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-30 18:58:04 +0100 |
---|---|---|
committer | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-30 18:58:04 +0100 |
commit | 3edc72cf6b977d0d1167e8905a93082f254575f5 (patch) | |
tree | 3ed3a24429901ac4f6828ecef2f263aab42271e0 /libdino/src | |
parent | e6069fa183aa4b8aa6c1e8afdff151f8d74c3fc5 (diff) | |
parent | 2e5977df966779c0ae7247b8ad5343425bea1690 (diff) | |
download | dino-3edc72cf6b977d0d1167e8905a93082f254575f5.tar.gz dino-3edc72cf6b977d0d1167e8905a93082f254575f5.zip |
Merge branch 'master' into omemo-muc
Diffstat (limited to 'libdino/src')
-rw-r--r-- | libdino/src/service/presence_manager.vala | 4 |
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) { |