Rename method
This commit is contained in:
parent
efd9f70e92
commit
3941b7e3f0
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ export class RoomViewModel extends ViewModel {
|
||||||
if (room.isArchived) {
|
if (room.isArchived) {
|
||||||
this._composerVM = this.track(new ArchivedViewModel(this.childOptions({archivedRoom: room})));
|
this._composerVM = this.track(new ArchivedViewModel(this.childOptions({archivedRoom: room})));
|
||||||
} else {
|
} else {
|
||||||
this._watchPowerLevelChange();
|
this._recreateComposerOnPowerLevelChange();
|
||||||
}
|
}
|
||||||
this._clearUnreadTimout = null;
|
this._clearUnreadTimout = null;
|
||||||
this._closeUrl = this.urlCreator.urlUntilSegment("session");
|
this._closeUrl = this.urlCreator.urlUntilSegment("session");
|
||||||
|
@ -67,7 +67,7 @@ export class RoomViewModel extends ViewModel {
|
||||||
this._clearUnreadAfterDelay();
|
this._clearUnreadAfterDelay();
|
||||||
}
|
}
|
||||||
|
|
||||||
async _watchPowerLevelChange() {
|
async _recreateComposerOnPowerLevelChange() {
|
||||||
const powerLevelObservable = await this._room.observePowerLevels();
|
const powerLevelObservable = await this._room.observePowerLevels();
|
||||||
let oldCanSendMessage = powerLevelObservable.get().canSendType("m.room.message");
|
let oldCanSendMessage = powerLevelObservable.get().canSendType("m.room.message");
|
||||||
const recreateComposer = newCanSendMessage => {
|
const recreateComposer = newCanSendMessage => {
|
||||||
|
|
Reference in a new issue