From dc49ef9999c97f63291f0799d9435d4c273b7f68 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 4 Jan 2022 20:27:58 -0600 Subject: [PATCH] ReplyMentions: to.length --> to.size, fix bug replying to self --- app/soapbox/features/compose/components/reply_mentions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/compose/components/reply_mentions.js b/app/soapbox/features/compose/components/reply_mentions.js index 55c0f95eb..c08e52fd0 100644 --- a/app/soapbox/features/compose/components/reply_mentions.js +++ b/app/soapbox/features/compose/components/reply_mentions.js @@ -23,7 +23,7 @@ class ReplyMentions extends ImmutablePureComponent { render() { const { explicitAddressing, to, isReply } = this.props; - if (!explicitAddressing || !isReply || !to || to.length === 0) { + if (!explicitAddressing || !isReply || !to || to.size === 0) { return null; } @@ -41,4 +41,4 @@ class ReplyMentions extends ImmutablePureComponent { ); } -} \ No newline at end of file +}