Merge pull request #351 from vector-im/bwindels/fix-await-room-load
fix DM room names appearing as "Empty room"
This commit is contained in:
commit
1ef6a91cf1
1 changed files with 2 additions and 2 deletions
|
@ -272,8 +272,8 @@ export class Room extends BaseRoom {
|
|||
/** @package */
|
||||
async load(summary, txn, log) {
|
||||
try {
|
||||
super.load(summary, txn, log);
|
||||
this._syncWriter.load(txn, log);
|
||||
await super.load(summary, txn, log);
|
||||
await this._syncWriter.load(txn, log);
|
||||
} catch (err) {
|
||||
throw new WrappedError(`Could not load room ${this._roomId}`, err);
|
||||
}
|
||||
|
|
Reference in a new issue