diff options
author | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-17 19:57:42 +0100 |
---|---|---|
committer | Samuel Hand <samuel.hand@openmailbox.org> | 2018-07-17 19:57:42 +0100 |
commit | c299a12b8e403e0c8e03d54d8b0b25029ca94b45 (patch) | |
tree | 4bda402c329a47b4c632af79d511e9bce4e9411d /plugins/omemo/src | |
parent | 56a0da154a06e3d6c4c1773bb74cdc18eefb04d8 (diff) | |
download | dino-c299a12b8e403e0c8e03d54d8b0b25029ca94b45.tar.gz dino-c299a12b8e403e0c8e03d54d8b0b25029ca94b45.zip |
Send OMEMO messages in MUCs to offline members
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r-- | plugins/omemo/src/manager.vala | 7 |
1 files 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<Jid> get_occupants(Jid muc, Account account){ Gee.List<Jid> occupants = new ArrayList<Jid>(Jid.equals_bare_func); - Gee.List<Jid>? occupant_jids = stream_interactor.get_module(MucManager.IDENTITY).get_other_occupants(muc, account); + Gee.List<Jid>? 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; |