From aad7f59f06a74bd3eb3154f38a90b44b7b75909b Mon Sep 17 00:00:00 2001 From: ponapalt Date: Tue, 29 Dec 2020 13:30:10 +0900 Subject: [PATCH] Revert "Mark correctly as read reverse-order announcements (#15070)" This reverts commit 8e2530ea16332f389edaeba7e87d7447c077bb00. --- .../features/getting_started/components/announcements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/getting_started/components/announcements.js b/app/javascript/mastodon/features/getting_started/components/announcements.js index 5bc3abac665129..d53bd8055c3cce 100644 --- a/app/javascript/mastodon/features/getting_started/components/announcements.js +++ b/app/javascript/mastodon/features/getting_started/components/announcements.js @@ -396,7 +396,7 @@ class Announcements extends ImmutablePureComponent { _markAnnouncementAsRead () { const { dismissAnnouncement, announcements } = this.props; const { index } = this.state; - const announcement = announcements.get(announcements.size - 1 - index); + const announcement = announcements.get(index); if (!announcement.get('read')) dismissAnnouncement(announcement.get('id')); }