Philipp Hörist pushed to branch master at gajim / gajim


Commits:
6f6d1d60 by Philipp Hörist at 2024-03-16T00:19:11+01:00
imprv: GroupChat: Improve default room config

- - - - -


1 changed file:

- gajim/common/helpers.py


Changes:

=====================================
gajim/common/helpers.py
=====================================
@@ -1188,13 +1188,18 @@ def get_resource(account: str) -> str | None:
 def get_default_muc_config() -> dict[str, bool | str]:
     return {
         # XEP-0045 options
+        # https://xmpp.org/registrar/formtypes.html
+
         'muc#roomconfig_allowinvites': True,
-        'muc#roomconfig_publicroom': False,
+        'muc#roomconfig_allowpm': 'anyone',
+        'muc#roomconfig_changesubject': False,
+        'muc#roomconfig_enablelogging': False,
         'muc#roomconfig_membersonly': True,
-        'muc#roomconfig_persistentroom': True,
-        'muc#roomconfig_whois': 'anyone',
         'muc#roomconfig_moderatedroom': False,
-        'muc#roomconfig_enablelogging': True,
+        'muc#roomconfig_passwordprotectedroom': False,
+        'muc#roomconfig_persistentroom': True,
+        'muc#roomconfig_publicroom': False,
+        'muc#roomconfig_whois': 'moderators',
 
         # Ejabberd options
         'allow_voice_requests': False,
@@ -1202,7 +1207,7 @@ def get_default_muc_config() -> dict[str, bool | str]:
         'mam': True,
 
         # Prosody options
-        '{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites': True,
+        '{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites': False,
         'muc#roomconfig_enablearchiving': True,
     }
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6f6d1d60d8af5951438fd06c7f36361806f0ee41

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/6f6d1d60d8af5951438fd06c7f36361806f0ee41
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to