mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Add profile world type
This commit is contained in:
parent
46230e59ad
commit
dc1f0fecb5
@ -151,9 +151,10 @@ export class RoomBeingCreated extends EventEmitter<{change: never}> {
|
||||
createOptions.room_alias_name = this.options.alias;
|
||||
}
|
||||
if (this.options.type !== undefined) {
|
||||
createOptions.creation_content = {
|
||||
type: this.options.type === RoomType.World ? "org.matrix.msc3815.world" : undefined,
|
||||
};
|
||||
let type: string | undefined = undefined;
|
||||
if (this.options.type === RoomType.World) type = "org.matrix.msc3815.world";
|
||||
if (this.options.type === RoomType.Profile) type = "org.matrix.msc3815.profile";
|
||||
createOptions.creation_content = { type };
|
||||
}
|
||||
if (this.options.isFederationDisabled === true) {
|
||||
if (createOptions.creation_content === undefined) createOptions.creation_content = {};
|
||||
|
@ -48,7 +48,8 @@ export enum RoomVisibility {
|
||||
}
|
||||
|
||||
export enum RoomType {
|
||||
World
|
||||
World,
|
||||
Profile,
|
||||
}
|
||||
|
||||
type RoomResponse = {
|
||||
|
Loading…
Reference in New Issue
Block a user