Load permalink creators to get proper state of the room
This commit is contained in:
parent
e4a9d4f5c8
commit
ccf292f053
1 changed files with 3 additions and 1 deletions
|
@ -276,7 +276,9 @@ module.exports = React.createClass({
|
||||||
if (!this._permalinkCreators) this._permalinkCreators = {};
|
if (!this._permalinkCreators) this._permalinkCreators = {};
|
||||||
if (this._permalinkCreators[room.roomId]) return this._permalinkCreators[room.roomId];
|
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() {
|
_stopAllPermalinkCreators: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue