Updated New Room Page

This commit is contained in:
N Pex 2025-01-14 11:14:11 +00:00
parent 5294069b20
commit a700e19990
30 changed files with 1263 additions and 763 deletions

View file

@ -29,8 +29,18 @@ export default {
if (!json.maxSizeAutoDownloads) {
Vue.set(config, "maxSizeAutoDownloads", 10 * 1024 * 1024);
}
if (!json.roomTypes) {
let roomTypes = ["group_chat", "channel"];
const fileDropEnabled = (json.experimental_file_mode === undefined) ? true : !!json.experimental_file_mode;
if (fileDropEnabled) {
roomTypes.push("file_drop");
}
json.roomTypes = roomTypes;
}
Vue.set(config, "loaded", true);
console.warn("ROOM TYPES CONFIG", json.roomTypes);
// Tell callback we are done loading runtime config
if (onloaded) {
onloaded(config);