-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL previewing support #1343
URL previewing support #1343
Conversation
…ting it in localStorage
@@ -27,6 +27,12 @@ module.exports = React.createClass({ | |||
displayName: 'ImageView', | |||
|
|||
propTypes: { | |||
mxEvent: React.PropTypes.object, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some comments would be nice...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…roperties rather than mxEvent fields
@richvdh PTAL |
lgtm, modulo talk of rewiring the unhiding. |
…on vdh's PR feedback
rewiring unhiding done; @richvdh PTAL |
@@ -104,6 +127,18 @@ module.exports = React.createClass({ | |||
</div> | |||
); | |||
|
|||
|
|||
if (global.localStorage) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason not to use eventTileOps.isWidgetHidden()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, thinko; fixed :)
looks good otherwise |
Adds:
This is part of a set of PRs spanning vector-web, matrix-react-sdk, matrix-js-sdk and synapse.