1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Load permalink creators to get proper state of the room

This commit is contained in:
Travis Ralston
2019-04-11 10:59:00 -06:00
parent e4a9d4f5c8
commit ccf292f053

View File

@@ -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() {