From cc1d68ace82666cbcc9604b2141b2fa8817bd431 Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 9 Dec 2023 20:34:55 +0100 Subject: [PATCH] [Glitch] Show announcements in reverse chronological order Port f1f0400adcd667b8ea558dad0bf42236f12530f4 and 8e2530ea16332f389edaeba7e87d7447c077bb00 to glitch-soc Co-Authored-By: Darius Kazemi --- .../features/getting_started/components/announcements.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/features/getting_started/components/announcements.jsx b/app/javascript/flavours/glitch/features/getting_started/components/announcements.jsx index 5d1a518ccb..3ccbd9dfd2 100644 --- a/app/javascript/flavours/glitch/features/getting_started/components/announcements.jsx +++ b/app/javascript/flavours/glitch/features/getting_started/components/announcements.jsx @@ -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()} {announcements.size > 1 && (