From 4f8d9d869e20429e330b3475321e7bd40b0a7ef7 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 6 Jul 2017 10:47:15 +0100 Subject: [PATCH] mention preserving ordering in comment --- src/components/views/messages/TextualBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 209fba30aa..2c50a94a6a 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -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;