From ccf292f05368f63dc4f0f5fd01135224d38f5b97 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 11 Apr 2019 10:59:00 -0600 Subject: [PATCH] Load permalink creators to get proper state of the room --- src/components/structures/RoomView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 3f9d93c9b1..1bcbec4845 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -276,7 +276,9 @@ module.exports = React.createClass({ if (!this._permalinkCreators) this._permalinkCreators = {}; if (this._permalinkCreators[room.roomId]) return this._permalinkCreators[room.roomId]; - return this._permalinkCreators[room.roomId] = new RoomPermalinkCreator(room); + this._permalinkCreators[room.roomId] = new RoomPermalinkCreator(room); + this._permalinkCreators[room.roomId].load(); + return this._permalinkCreators[room.roomId]; }, _stopAllPermalinkCreators: function() {