diff --git a/src/domain/SessionLoadViewModel.js b/src/domain/SessionLoadViewModel.js index e4a1fc0a..2a7de3be 100644 --- a/src/domain/SessionLoadViewModel.js +++ b/src/domain/SessionLoadViewModel.js @@ -20,10 +20,10 @@ export class SessionLoadViewModel extends ViewModel { } try { this._loading = true; - this.emitChange(); + this.emitChange("loading"); this._sessionContainer = this._createAndStartSessionContainer(); this._waitHandle = this._sessionContainer.loadStatus.waitFor(s => { - this.emitChange(); + this.emitChange("loadLabel"); // wait for initial sync, but not catchup sync const isCatchupSync = s === LoadStatus.FirstSync && this._sessionContainer.sync.status.get() === SyncStatus.CatchupSync; @@ -51,7 +51,7 @@ export class SessionLoadViewModel extends ViewModel { this._error = err; } finally { this._loading = false; - this.emitChange(); + this.emitChange("loading"); } } diff --git a/src/domain/session/room/timeline/tiles/MessageTile.js b/src/domain/session/room/timeline/tiles/MessageTile.js index 0ca74128..e0bd64d4 100644 --- a/src/domain/session/room/timeline/tiles/MessageTile.js +++ b/src/domain/session/room/timeline/tiles/MessageTile.js @@ -1,7 +1,6 @@ import {SimpleTile} from "./SimpleTile.js"; export class MessageTile extends SimpleTile { - constructor(options) { super(options); this._isOwn = this._entry.sender === options.ownUserId; diff --git a/src/ui/web/session/room/timeline/TextMessageView.js b/src/ui/web/session/room/timeline/TextMessageView.js index 7cf39cce..d3748d35 100644 --- a/src/ui/web/session/room/timeline/TextMessageView.js +++ b/src/ui/web/session/room/timeline/TextMessageView.js @@ -2,7 +2,6 @@ import {TemplateView} from "../../../general/TemplateView.js"; export class TextMessageView extends TemplateView { render(t, vm) { - // no bindings ... should this be a template view? return t.li( {className: {"TextMessageView": true, own: vm.isOwn, pending: vm.isPending}}, t.div({className: "message-container"}, [