use private topic field as public one got removed as not needed in view

This commit is contained in:
Bruno Windels 2022-02-11 09:37:56 +01:00
parent 175f869c83
commit 57b1542688
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export class CreateRoomViewModel extends ViewModel {
const roomBeingCreated = this._session.createRoom({
type: this.isPublic ? RoomType.Public : RoomType.Private,
name: this._name ?? undefined,
topic: this.topic ?? undefined,
topic: this._topic ?? undefined,
isEncrypted: !this.isPublic && this._isEncrypted,
isFederationDisabled: this._isFederationDisabled,
alias: this.isPublic ? ensureAliasIsLocalPart(this._roomAlias) : undefined,