Updated New Room Page
This commit is contained in:
parent
5294069b20
commit
a700e19990
30 changed files with 1263 additions and 763 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -417,6 +417,14 @@ export default {
|
|||
}
|
||||
break;
|
||||
|
||||
case "m.room.canonical_alias":
|
||||
{
|
||||
if (this.currentRoomId && this.currentRoomId.startsWith("#") && !this.currentRoom) {
|
||||
this.currentRoom = this.getRoom(this.currentRoomId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case STATE_EVENT_ROOM_DELETED:
|
||||
{
|
||||
const room = this.matrixClient.getRoom(event.getRoomId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue