aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/muc_manager.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-05-12 00:09:50 +0200
committerfiaxh <git@lightrise.org>2019-05-16 11:12:14 -0600
commitd3c6e5c62cb405cb6db646ee1ee03ca1e51d5e00 (patch)
treef304fb028397c668d87651e4e9350c3d009c280c /libdino/src/service/muc_manager.vala
parent951be638f6596e9156dd087c310837cfeda242b3 (diff)
downloaddino-d3c6e5c62cb405cb6db646ee1ee03ca1e51d5e00.tar.gz
dino-d3c6e5c62cb405cb6db646ee1ee03ca1e51d5e00.zip
Enable sending chat state notifications in private rooms
Diffstat (limited to 'libdino/src/service/muc_manager.vala')
-rw-r--r--libdino/src/service/muc_manager.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala
index 534f9d75..c376a5d9 100644
--- a/libdino/src/service/muc_manager.vala
+++ b/libdino/src/service/muc_manager.vala
@@ -111,6 +111,10 @@ public class MucManager : StreamInteractionModule, Object {
return flag.has_room_feature(jid, Xep.Muc.Feature.NON_ANONYMOUS) && flag.has_room_feature(jid, Xep.Muc.Feature.MEMBERS_ONLY);
}
+ public bool is_public_room(Account account, Jid jid) {
+ return is_groupchat(jid, account) && !is_private_room(account, jid);
+ }
+
public Gee.List<Jid>? get_occupants(Jid jid, Account account) {
if (is_groupchat(jid, account)) {
Gee.List<Jid> ret = new ArrayList<Jid>(Jid.equals_func);