mirror of https://github.com/Siphonay/mastodon
[Glitch] Show announcements in reverse chronological order
Portf1f0400adc
and8e2530ea16
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 () {
|
_markAnnouncementAsRead () {
|
||||||
const { dismissAnnouncement, announcements } = this.props;
|
const { dismissAnnouncement, announcements } = this.props;
|
||||||
const { index } = this.state;
|
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'));
|
if (!announcement.get('read')) dismissAnnouncement(announcement.get('id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -435,7 +435,7 @@ class Announcements extends ImmutablePureComponent {
|
||||||
selected={index === idx}
|
selected={index === idx}
|
||||||
disabled={disableSwiping}
|
disabled={disableSwiping}
|
||||||
/>
|
/>
|
||||||
))}
|
)).reverse()}
|
||||||
</ReactSwipeableViews>
|
</ReactSwipeableViews>
|
||||||
|
|
||||||
{announcements.size > 1 && (
|
{announcements.size > 1 && (
|
||||||
|
|
Loading…
Reference in New Issue