Skip to content
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

Merged
merged 13 commits into from
Apr 11, 2016
Merged

URL previewing support #1343

merged 13 commits into from
Apr 11, 2016

Conversation

ara4n
Copy link
Member

@ara4n ara4n commented Apr 3, 2016

Adds:

  • Ability for ImageView to be used to preview generic image URLs taken from URL metadata
  • Ability to un-hide hidden image previews from MessageContextMenu (updating localStorage and the event's widgetHidden property)
  • CSS for LinkPreviewWidget

This is part of a set of PRs spanning vector-web, matrix-react-sdk, matrix-js-sdk and synapse.

@@ -27,6 +27,12 @@ module.exports = React.createClass({
displayName: 'ImageView',

propTypes: {
mxEvent: React.PropTypes.object,
Copy link
Member

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...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@richvdh richvdh assigned ara4n and unassigned richvdh Apr 4, 2016
@ara4n
Copy link
Member Author

ara4n commented Apr 7, 2016

@richvdh PTAL

@ara4n ara4n assigned richvdh and unassigned ara4n Apr 7, 2016
@richvdh
Copy link
Member

richvdh commented Apr 8, 2016

lgtm, modulo talk of rewiring the unhiding.

@richvdh richvdh assigned ara4n and unassigned richvdh Apr 8, 2016
@ara4n
Copy link
Member Author

ara4n commented Apr 8, 2016

rewiring unhiding done; @richvdh PTAL

@ara4n ara4n assigned richvdh and unassigned ara4n Apr 8, 2016
@@ -104,6 +127,18 @@ module.exports = React.createClass({
</div>
);


if (global.localStorage) {
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, thinko; fixed :)

@richvdh
Copy link
Member

richvdh commented Apr 11, 2016

looks good otherwise

@richvdh richvdh assigned ara4n and unassigned richvdh Apr 11, 2016
@ara4n ara4n merged commit 8c619fe into develop Apr 11, 2016
@t3chguy t3chguy deleted the matthew/preview_urls branch May 12, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants