mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
mention preserving ordering in comment
This commit is contained in:
parent
6a2d6b2e6e
commit
4f8d9d869e
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ module.exports = React.createClass({
|
|||
if (this.props.showUrlPreview && !this.state.links.length) {
|
||||
var links = this.findLinks(this.refs.content.children);
|
||||
if (links.length) {
|
||||
// de-dup the links
|
||||
// de-dup the links (but preserve ordering)
|
||||
const seen = new Set();
|
||||
links = links.filter((link) => {
|
||||
if (seen.has(link)) return false;
|
||||
|
|
Loading…
Reference in a new issue