From f5f25c3019230ec8ba191faca2bb2cbd9337dd21 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 12 May 2021 23:07:25 +0200 Subject: [PATCH] fix DM room names appearing as "Empty room" because we weren't properly awaiting the heroes to be loaded --- src/matrix/room/Room.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index 93c580a3..57382831 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -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); }