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:
Bruno Windels 2021-05-12 21:09:24 +00:00 committed by GitHub
commit 1ef6a91cf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,8 +272,8 @@ export class Room extends BaseRoom {
/** @package */ /** @package */
async load(summary, txn, log) { async load(summary, txn, log) {
try { try {
super.load(summary, txn, log); await super.load(summary, txn, log);
this._syncWriter.load(txn, log); await this._syncWriter.load(txn, log);
} catch (err) { } catch (err) {
throw new WrappedError(`Could not load room ${this._roomId}`, err); throw new WrappedError(`Could not load room ${this._roomId}`, err);
} }