fix lint errors

This commit is contained in:
Bruno Windels 2022-02-10 19:54:47 +01:00
parent ff46d382ac
commit d2008a336b
4 changed files with 2 additions and 3 deletions

View file

@ -21,7 +21,6 @@ import {InviteTileViewModel} from "./InviteTileViewModel.js";
import {RoomBeingCreatedTileViewModel} from "./RoomBeingCreatedTileViewModel.js"; import {RoomBeingCreatedTileViewModel} from "./RoomBeingCreatedTileViewModel.js";
import {RoomFilter} from "./RoomFilter.js"; import {RoomFilter} from "./RoomFilter.js";
import {ApplyMap} from "../../../observable/map/ApplyMap.js"; import {ApplyMap} from "../../../observable/map/ApplyMap.js";
import {LogMap} from "../../../observable/map/LogMap.js";
import {addPanelIfNeeded} from "../../navigation/index.js"; import {addPanelIfNeeded} from "../../navigation/index.js";
export class LeftPanelViewModel extends ViewModel { export class LeftPanelViewModel extends ViewModel {

View file

@ -43,6 +43,7 @@ export class RoomBeingCreatedViewModel extends ViewModel {
return error.message; return error.message;
} }
} }
return "";
} }
get avatarLetter() { return avatarInitials(this.name); } get avatarLetter() { return avatarInitials(this.name); }
get avatarColorNumber() { return getIdentifierColorNumber(this._roomBeingCreated.avatarColorId); } get avatarColorNumber() { return getIdentifierColorNumber(this._roomBeingCreated.avatarColorId); }

View file

@ -606,7 +606,7 @@ export class Session {
return this._roomsBeingCreated; return this._roomsBeingCreated;
} }
createRoom(options, log = undefined) { createRoom(options) {
let roomBeingCreated; let roomBeingCreated;
this._platform.logger.runDetached("create room", async log => { this._platform.logger.runDetached("create room", async log => {
const id = `local-${Math.floor(this._platform.random() * Number.MAX_SAFE_INTEGER)}`; const id = `local-${Math.floor(this._platform.random() * Number.MAX_SAFE_INTEGER)}`;

View file

@ -18,7 +18,6 @@ limitations under the License.
import {TemplateView} from "../../general/TemplateView"; import {TemplateView} from "../../general/TemplateView";
import {LoadingView} from "../../general/LoadingView"; import {LoadingView} from "../../general/LoadingView";
import {AvatarView} from "../../AvatarView"; import {AvatarView} from "../../AvatarView";
import {renderStaticAvatar} from "../../avatar.js";
export class RoomBeingCreatedView extends TemplateView { export class RoomBeingCreatedView extends TemplateView {
render(t, vm) { render(t, vm) {