aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/muc_manager.vala
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/src/service/muc_manager.vala')
-rw-r--r--libdino/src/service/muc_manager.vala5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala
index f8520064..82d200b0 100644
--- a/libdino/src/service/muc_manager.vala
+++ b/libdino/src/service/muc_manager.vala
@@ -53,7 +53,10 @@ public class MucManager : StreamInteractionModule, Object {
}
public ArrayList<Jid>? get_occupants(Jid jid, Account account) {
- return stream_interactor.get_module(PresenceManager.IDENTITY).get_full_jids(jid, account);
+ if (is_groupchat(jid, account)) {
+ return stream_interactor.get_module(PresenceManager.IDENTITY).get_full_jids(jid, account);
+ }
+ return null;
}
public ArrayList<Jid>? get_other_occupants(Jid jid, Account account) {