From 2e5977df966779c0ae7247b8ad5343425bea1690 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 30 Jul 2018 00:00:56 +0200 Subject: Fire signal on subscription approval --- libdino/src/service/presence_manager.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libdino') 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>> shows = new HashMap>>(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) { -- cgit v1.2.3-70-g09d2