aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-22 23:55:19 +0100
committerfiaxh <git@mx.ax.lt>2017-03-23 15:43:20 +0100
commit492baaf0845fee2495b9d181cd9fd50403eb61f8 (patch)
tree2d40fdcc5b86dfc1429fb660b2cfbc65b8a8f96b /libdino
parentfa78573b052693b29350bdd0f7eaf74dc6571e4a (diff)
downloaddino-492baaf0845fee2495b9d181cd9fd50403eb61f8.tar.gz
dino-492baaf0845fee2495b9d181cd9fd50403eb61f8.zip
Add back on subscription request
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/presence_manager.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdino/src/service/presence_manager.vala b/libdino/src/service/presence_manager.vala
index effeb59f..5dfb2cf6 100644
--- a/libdino/src/service/presence_manager.vala
+++ b/libdino/src/service/presence_manager.vala
@@ -74,6 +74,11 @@ public class PresenceManager : StreamInteractionModule, Object {
if (stream != null) stream.get_module(Xmpp.Presence.Module.IDENTITY).deny_subscription(stream, jid.bare_jid.to_string());
}
+ public void cancel_subscription(Account account, Jid jid) {
+ Core.XmppStream stream = stream_interactor.get_stream(account);
+ if (stream != null) stream.get_module(Xmpp.Presence.Module.IDENTITY).cancel_subscription(stream, jid.bare_jid.to_string());
+ }
+
private void on_account_added(Account account) {
stream_interactor.module_manager.get_module(account, Presence.Module.IDENTITY).received_available_show.connect((stream, jid, show) =>
on_received_available_show(account, new Jid(jid), show)