diff options
author | fiaxh <git@mx.ax.lt> | 2018-07-30 00:00:56 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-07-30 00:00:56 +0200 |
commit | 2e5977df966779c0ae7247b8ad5343425bea1690 (patch) | |
tree | 9aa6d01730c7b44ef147d43ffa6bdd69b636acb9 /xmpp-vala | |
parent | 063d0146f922b1ed6388f40e05ae8eb0c547083d (diff) | |
download | dino-2e5977df966779c0ae7247b8ad5343425bea1690.tar.gz dino-2e5977df966779c0ae7247b8ad5343425bea1690.zip |
Fire signal on subscription approval
Diffstat (limited to 'xmpp-vala')
-rw-r--r-- | xmpp-vala/src/module/presence/module.vala | 4 |
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); |