Skip to content

Commit

Permalink
Revert "Mark correctly as read reverse-order announcements (mastodon#…
Browse files Browse the repository at this point in the history
…15070)"

This reverts commit 8e2530e.
  • Loading branch information
ponapalt committed Dec 29, 2020
1 parent 6577d3c commit aad7f59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

Expand Down

0 comments on commit aad7f59

Please sign in to comment.