From d2008a336b4e4ecc4d9bd074a3af23bd308e1049 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 10 Feb 2022 19:54:47 +0100 Subject: [PATCH] fix lint errors --- src/domain/session/leftpanel/LeftPanelViewModel.js | 1 - src/domain/session/room/RoomBeingCreatedViewModel.js | 1 + src/matrix/Session.js | 2 +- src/platform/web/ui/session/room/RoomBeingCreatedView.js | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/domain/session/leftpanel/LeftPanelViewModel.js b/src/domain/session/leftpanel/LeftPanelViewModel.js index 08584d7f..843ed1ca 100644 --- a/src/domain/session/leftpanel/LeftPanelViewModel.js +++ b/src/domain/session/leftpanel/LeftPanelViewModel.js @@ -21,7 +21,6 @@ import {InviteTileViewModel} from "./InviteTileViewModel.js"; import {RoomBeingCreatedTileViewModel} from "./RoomBeingCreatedTileViewModel.js"; import {RoomFilter} from "./RoomFilter.js"; import {ApplyMap} from "../../../observable/map/ApplyMap.js"; -import {LogMap} from "../../../observable/map/LogMap.js"; import {addPanelIfNeeded} from "../../navigation/index.js"; export class LeftPanelViewModel extends ViewModel { diff --git a/src/domain/session/room/RoomBeingCreatedViewModel.js b/src/domain/session/room/RoomBeingCreatedViewModel.js index 0ed82be9..f98c86f9 100644 --- a/src/domain/session/room/RoomBeingCreatedViewModel.js +++ b/src/domain/session/room/RoomBeingCreatedViewModel.js @@ -43,6 +43,7 @@ export class RoomBeingCreatedViewModel extends ViewModel { return error.message; } } + return ""; } get avatarLetter() { return avatarInitials(this.name); } get avatarColorNumber() { return getIdentifierColorNumber(this._roomBeingCreated.avatarColorId); } diff --git a/src/matrix/Session.js b/src/matrix/Session.js index be634754..287c48ea 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -606,7 +606,7 @@ export class Session { return this._roomsBeingCreated; } - createRoom(options, log = undefined) { + createRoom(options) { let roomBeingCreated; this._platform.logger.runDetached("create room", async log => { const id = `local-${Math.floor(this._platform.random() * Number.MAX_SAFE_INTEGER)}`; diff --git a/src/platform/web/ui/session/room/RoomBeingCreatedView.js b/src/platform/web/ui/session/room/RoomBeingCreatedView.js index 1da44d34..3ecfde69 100644 --- a/src/platform/web/ui/session/room/RoomBeingCreatedView.js +++ b/src/platform/web/ui/session/room/RoomBeingCreatedView.js @@ -18,7 +18,6 @@ limitations under the License. import {TemplateView} from "../../general/TemplateView"; import {LoadingView} from "../../general/LoadingView"; import {AvatarView} from "../../AvatarView"; -import {renderStaticAvatar} from "../../avatar.js"; export class RoomBeingCreatedView extends TemplateView { render(t, vm) {