diff --git a/src/components/views/right_panel/PinnedMessagesCard.tsx b/src/components/views/right_panel/PinnedMessagesCard.tsx
index cd3cdef88c..e559793ced 100644
--- a/src/components/views/right_panel/PinnedMessagesCard.tsx
+++ b/src/components/views/right_panel/PinnedMessagesCard.tsx
@@ -156,7 +156,7 @@ function PinnedMessages({ events, room, permalinkCreator }: PinnedMessagesProps)
})}
role="list"
>
- {events.reverse().map((event, i) => (
+ {events.map((event, i) => (
<>
", () => {
});
it("should show two pinned messages", async () => {
- //const room = mkRoom([pin1], [pin2]);
const { asFragment } = await initPinnedMessagesCard([pin1], [pin2]);
expect(screen.queryAllByRole("listitem")).toHaveLength(2);
diff --git a/test/components/views/right_panel/__snapshots__/PinnedMessagesCard-test.tsx.snap b/test/components/views/right_panel/__snapshots__/PinnedMessagesCard-test.tsx.snap
index d656093572..a055fdcca8 100644
--- a/test/components/views/right_panel/__snapshots__/PinnedMessagesCard-test.tsx.snap
+++ b/test/components/views/right_panel/__snapshots__/PinnedMessagesCard-test.tsx.snap
@@ -184,7 +184,7 @@ exports[` should show two pinned messages 1`] = `
class="mx_EventTile_body translate"
dir="auto"
>
- First pinned message
+ The second one
@@ -250,7 +250,7 @@ exports[` should show two pinned messages 1`] = `
class="mx_EventTile_body translate"
dir="auto"
>
- The second one
+ First pinned message
@@ -379,7 +379,7 @@ exports[` unpin all should not allow to unpinall 1`] = `
class="mx_EventTile_body translate"
dir="auto"
>
- First pinned message
+ The second one
@@ -445,7 +445,7 @@ exports[` unpin all should not allow to unpinall 1`] = `
class="mx_EventTile_body translate"
dir="auto"
>
- The second one
+ First pinned message