瀏覽代碼

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

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

@@ -0,0 +1,6 @@
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…
取消
儲存