mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-10 22:56:27 +02:00
Fix unpublishing room in room settings
Fixes https://github.com/vector-im/vector-web/issues/1743
This commit is contained in:
parent
2b7ade9ef5
commit
743f79a9a7
@ -65,7 +65,12 @@ module.exports = React.createClass({
|
||||
tags_changed: false,
|
||||
tags: tags,
|
||||
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 oublisherd or not.
|
||||
isRoomPublished: this._originalIsRoomPublished,
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user