aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-08-05 01:26:36 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-08-05 01:26:36 +0100
commit0bfab9d1d97d07679da4a2a1db5903782a74ae49 (patch)
tree25eac692887bc6602ae7597d3216e787f8ebc70d /libdino/src
parented3b36d0de50966de907766ac0fd6bc7713f0374 (diff)
downloaddino-0bfab9d1d97d07679da4a2a1db5903782a74ae49.tar.gz
dino-0bfab9d1d97d07679da4a2a1db5903782a74ae49.zip
Fix bug where OMEMO not avaiable with a newly added contact
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/presence_manager.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdino/src/service/presence_manager.vala b/libdino/src/service/presence_manager.vala
index e832687d..62100c2c 100644
--- a/libdino/src/service/presence_manager.vala
+++ b/libdino/src/service/presence_manager.vala
@@ -11,6 +11,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);
+ public signal void mutual_subscription(Jid jid, Account account);
private StreamInteractor stream_interactor;
private HashMap<Jid, HashMap<Jid, ArrayList<Show>>> shows = new HashMap<Jid, HashMap<Jid, ArrayList<Show>>>(Jid.hash_bare_func, Jid.equals_bare_func);
@@ -98,6 +99,9 @@ public class PresenceManager : StreamInteractionModule, Object {
stream_interactor.module_manager.get_module(account, Presence.Module.IDENTITY).received_subscription_approval.connect((stream, jid) => {
received_subscription_approval(jid, account);
});
+ stream_interactor.module_manager.get_module(account, Presence.Module.IDENTITY).mutual_subscription.connect((stream, jid) => {
+ mutual_subscription(jid, account);
+ });
}
private void on_received_available_show(Account account, Jid jid, string show) {