From c299a12b8e403e0c8e03d54d8b0b25029ca94b45 Mon Sep 17 00:00:00 2001 From: Samuel Hand Date: Tue, 17 Jul 2018 19:57:42 +0100 Subject: [PATCH] Send OMEMO messages in MUCs to offline members --- plugins/omemo/src/manager.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/omemo/src/manager.vala b/plugins/omemo/src/manager.vala index b80c5283..492cfeba 100644 --- a/plugins/omemo/src/manager.vala +++ b/plugins/omemo/src/manager.vala @@ -87,14 +87,13 @@ public class Manager : StreamInteractionModule, Object { private Gee.List get_occupants(Jid muc, Account account){ Gee.List occupants = new ArrayList(Jid.equals_bare_func); - Gee.List? occupant_jids = stream_interactor.get_module(MucManager.IDENTITY).get_other_occupants(muc, account); + Gee.List? occupant_jids = stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(muc, account); if(occupant_jids == null) { return occupants; } foreach (Jid occupant in occupant_jids) { - Jid? occupant_jid = stream_interactor.get_module(MucManager.IDENTITY).get_real_jid(occupant, account); - if(occupant_jid != null){ - occupants.add(occupant_jid.bare_jid); + if(!occupant.equals(account.bare_jid)){ + occupants.add(occupant.bare_jid); } } return occupants;