You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
move all the localstorage crap to TextualBody
This commit is contained in:
@ -111,6 +111,9 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
unhideWidget: function() {
|
unhideWidget: function() {
|
||||||
self.setState({ widgetHidden: false });
|
self.setState({ widgetHidden: false });
|
||||||
|
if (global.localStorage) {
|
||||||
|
global.localStorage.removeItem("hide_preview_" + self.props.mxEvent.getId());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user