From 9845e5ef0e7b32a4caa6b410ed40a8abb3e870f2 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 11 Apr 2016 23:53:36 +0100 Subject: [PATCH] move all the localstorage crap to TextualBody --- src/components/views/messages/TextualBody.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 75fa02e35c..ce33a60872 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -111,6 +111,9 @@ module.exports = React.createClass({ unhideWidget: function() { self.setState({ widgetHidden: false }); + if (global.localStorage) { + global.localStorage.removeItem("hide_preview_" + self.props.mxEvent.getId()); + } }, } },