aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/presence
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/presence')
-rw-r--r--xmpp-vala/src/module/presence/module.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/presence/module.vala b/xmpp-vala/src/module/presence/module.vala
index cbc7d365..12b40245 100644
--- a/xmpp-vala/src/module/presence/module.vala
+++ b/xmpp-vala/src/module/presence/module.vala
@@ -11,6 +11,7 @@ namespace Xmpp.Presence {
public signal void received_available_show(XmppStream stream, Jid jid, string show);
public signal void received_unavailable(XmppStream stream, Presence.Stanza presence);
public signal void received_subscription_request(XmppStream stream, Jid jid);
+ public signal void received_subscription_approval(XmppStream stream, Jid jid);
public signal void received_unsubscription(XmppStream stream, Jid jid);
public bool available_resource = true;
@@ -79,6 +80,9 @@ namespace Xmpp.Presence {
case Presence.Stanza.TYPE_SUBSCRIBE:
received_subscription_request(stream, presence.from);
break;
+ case Presence.Stanza.TYPE_SUBSCRIBED:
+ received_subscription_approval(stream, presence.from);
+ break;
case Presence.Stanza.TYPE_UNSUBSCRIBE:
stream.get_flag(Flag.IDENTITY).remove_presence(presence.from);
received_unsubscription(stream, presence.from);