You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Merge pull request #351 from matrix-org/dbkr/fix_directory_unpublish
Fix unpublishing room in room settings
This commit is contained in:
@@ -65,7 +65,12 @@ module.exports = React.createClass({
|
|||||||
tags_changed: false,
|
tags_changed: false,
|
||||||
tags: tags,
|
tags: tags,
|
||||||
areNotifsMuted: areNotifsMuted,
|
areNotifsMuted: areNotifsMuted,
|
||||||
isRoomPublished: false, // loaded async in componentWillMount
|
// isRoomPublished is loaded async in componentWillMount so when the component
|
||||||
|
// inits, the saved value will always be undefined, however getInitialState()
|
||||||
|
// is also called from the saving code so we must return the correct value here
|
||||||
|
// if we have it (although this could race if the user saves before we load whether
|
||||||
|
// the room is published or not).
|
||||||
|
isRoomPublished: this._originalIsRoomPublished,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user