diff --git a/webapp/channels/src/components/advanced_text_editor/scheduled_post_indicator/scheduled_post_indicator.tsx b/webapp/channels/src/components/advanced_text_editor/scheduled_post_indicator/scheduled_post_indicator.tsx index 0e5e45d8b5..91769825da 100644 --- a/webapp/channels/src/components/advanced_text_editor/scheduled_post_indicator/scheduled_post_indicator.tsx +++ b/webapp/channels/src/components/advanced_text_editor/scheduled_post_indicator/scheduled_post_indicator.tsx @@ -34,7 +34,8 @@ export default function ScheduledPostIndicator({location, channelId, postId, rem // else, get those for the channel. // Fetch scheduled posts for the thread when opening a thread, and fetch for channel // when opening from center channel. - const id = location === Locations.RHS_COMMENT ? postId : channelId; + const isThread = location === Locations.RHS_COMMENT; + const id = isThread ? postId : channelId; const scheduledPostData = useSelector((state: GlobalState) => showChannelOrThreadScheduledPostIndicator(state, id)); const currentTeamName = useSelector((state: GlobalState) => getCurrentTeam(state)?.name); @@ -77,10 +78,18 @@ export default function ScheduledPostIndicator({location, channelId, postId, rem // display scheduled post count if there are more than one scheduled post if (scheduledPostData.count > 1) { - scheduledPostText = ( + scheduledPostText = isThread ? ( + ) : ( + diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 504057bc4f..fdc0f08de3 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -4869,8 +4869,9 @@ "scheduled_post.action.edit": "Edit scheduled post", "scheduled_post.action.reschedule": "Reschedule post", "scheduled_post.action.send_now": "Send now", - "scheduled_post.channel_indicator.link_to_scheduled_posts.text": "See all scheduled messages", - "scheduled_post.channel_indicator.multiple": "You have {count} scheduled messages.", + "scheduled_post.channel_indicator.link_to_scheduled_posts.text": "See all.", + "scheduled_post.channel_indicator.multiple_in_channel": "{count} scheduled messages in channel.", + "scheduled_post.channel_indicator.multiple_in_thread": "{count} scheduled messages in thread.", "scheduled_post.channel_indicator.single": "Message scheduled for {dateTime}.", "scheduled_post.channel_indicator.with_other_user_late_time": "You have {count, plural, =1 {one} other {#}} scheduled {count, plural, =1 {message} other {messages}}.", "scheduled_post.delete_modal.body": "Are you sure you want to delete this scheduled post to {displayName}?",