aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/presence
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-07-30 18:58:04 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-07-30 18:58:04 +0100
commit3edc72cf6b977d0d1167e8905a93082f254575f5 (patch)
tree3ed3a24429901ac4f6828ecef2f263aab42271e0 /xmpp-vala/src/module/presence
parente6069fa183aa4b8aa6c1e8afdff151f8d74c3fc5 (diff)
parent2e5977df966779c0ae7247b8ad5343425bea1690 (diff)
downloaddino-3edc72cf6b977d0d1167e8905a93082f254575f5.tar.gz
dino-3edc72cf6b977d0d1167e8905a93082f254575f5.zip
Merge branch 'master' into omemo-muc
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);