瀏覽代碼

feat: Module to hide rooms for some queries.

factor2
damencho 2 年之前
父節點
當前提交
6a077333c6

+ 4
- 0
doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example 查看文件

78
     restrict_room_creation = true
78
     restrict_room_creation = true
79
     storage = "memory"
79
     storage = "memory"
80
     modules_enabled = {
80
     modules_enabled = {
81
+        "muc_hide_all";
81
         "muc_meeting_id";
82
         "muc_meeting_id";
82
         "muc_domain_mapper";
83
         "muc_domain_mapper";
83
         "polls";
84
         "polls";
92
     restrict_room_creation = true
93
     restrict_room_creation = true
93
     storage = "memory"
94
     storage = "memory"
94
     modules_enabled = {
95
     modules_enabled = {
96
+        "muc_hide_all";
95
         "muc_meeting_id";
97
         "muc_meeting_id";
96
         "muc_domain_mapper";
98
         "muc_domain_mapper";
97
         "muc_rate_limit";
99
         "muc_rate_limit";
105
 Component "internal.auth.jitmeet.example.com" "muc"
107
 Component "internal.auth.jitmeet.example.com" "muc"
106
     storage = "memory"
108
     storage = "memory"
107
     modules_enabled = {
109
     modules_enabled = {
110
+        "muc_hide_all";
108
         "ping";
111
         "ping";
109
     }
112
     }
110
     admins = { "focusUser@auth.jitmeet.example.com", "jvb@auth.jitmeet.example.com" }
113
     admins = { "focusUser@auth.jitmeet.example.com", "jvb@auth.jitmeet.example.com" }
139
     muc_room_locking = false
142
     muc_room_locking = false
140
     muc_room_default_public_jids = true
143
     muc_room_default_public_jids = true
141
     modules_enabled = {
144
     modules_enabled = {
145
+        "muc_hide_all";
142
         "muc_rate_limit";
146
         "muc_rate_limit";
143
         "polls";
147
         "polls";
144
     }
148
     }

+ 6
- 0
resources/prosody-plugins/mod_muc_hide_all.lua 查看文件

1
+-- This module makes all MUCs in Prosody unavailable on disco#items query
2
+-- Copyright (C) 2023-present 8x8, Inc.
3
+
4
+module:hook("muc-room-pre-create", function(event)
5
+    event.room:set_hidden(true);
6
+end, -1);

Loading…
取消
儲存