From 1549959f0a479357c8b676576ecd4fa2f78e7cb3 Mon Sep 17 00:00:00 2001 From: Ricardo Arturo Cabral Mejia Date: Sun, 30 Jan 2022 02:11:12 +0000 Subject: [PATCH] chore: remove useless code --- src/utils/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.js b/src/utils/helpers.js index f039250..5827c40 100644 --- a/src/utils/helpers.js +++ b/src/utils/helpers.js @@ -58,7 +58,7 @@ export function processMentions(event) { match => match.groups.p ) - const tags = Array.from(new Set(matches).values()).reduce( + const tags = matches.reduce( (tags, pubkey) => tags.find(([t, v]) => t === 'p' && v === pubkey) ? tags