mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
fix DM room names appearing as "Empty room"
because we weren't properly awaiting the heroes to be loaded
This commit is contained in:
parent
c153f4a3e2
commit
f5f25c3019
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user