mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-12 05:33:49 -05:00
[Glitch] Show announcements in reverse chronological order
Port f1f0400adcd667b8ea558dad0bf42236f12530f4 and 8e2530ea16332f389edaeba7e87d7447c077bb00 to glitch-soc Co-Authored-By: Darius Kazemi <darius.kazemi@gmail.com>
This commit is contained in:
parent
4b2ddaf106
commit
cc1d68ace8
@ -394,7 +394,7 @@ class Announcements extends ImmutablePureComponent {
|
||||
_markAnnouncementAsRead () {
|
||||
const { dismissAnnouncement, announcements } = this.props;
|
||||
const { index } = this.state;
|
||||
const announcement = announcements.get(index);
|
||||
const announcement = announcements.get(announcements.size - 1 - index);
|
||||
if (!announcement.get('read')) dismissAnnouncement(announcement.get('id'));
|
||||
}
|
||||
|
||||
@ -435,7 +435,7 @@ class Announcements extends ImmutablePureComponent {
|
||||
selected={index === idx}
|
||||
disabled={disableSwiping}
|
||||
/>
|
||||
))}
|
||||
)).reverse()}
|
||||
</ReactSwipeableViews>
|
||||
|
||||
{announcements.size > 1 && (
|
||||
|
Loading…
x
Reference in New Issue
Block a user