diff --git a/src/components/views/right_panel/RoomSummaryCard.tsx b/src/components/views/right_panel/RoomSummaryCard.tsx index ca12c180da..39575d94f5 100644 --- a/src/components/views/right_panel/RoomSummaryCard.tsx +++ b/src/components/views/right_panel/RoomSummaryCard.tsx @@ -72,6 +72,7 @@ import { Key } from "../../../Keyboard"; import { useTransition } from "../../../hooks/useTransition"; import { useIsVideoRoom } from "../../../utils/video-rooms"; import { usePinnedEvents } from "../../../hooks/usePinnedEvents"; +import { ReleaseAnnouncement } from "../../structures/ReleaseAnnouncement.tsx"; interface IProps { room: Room; @@ -380,16 +381,25 @@ const RoomSummaryCard: React.FC = ({ {!isVideoRoom && ( <> - - - {pinCount} - - - +
+ + + {pinCount} + + +
+ )} diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index cc051ac0cf..1ceee5b51f 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1853,6 +1853,11 @@ "other": "You can only pin up to %(count)s widgets" }, "menu": "Open menu", + "release_announcement": { + "close": "Ok", + "description": "Find all pinned messages here. Rollover any message and select “Pin” to add it.", + "title": "All new pinned messages" + }, "reply_thread": "Reply to a thread message", "title": "Pinned messages", "unpin_all": { diff --git a/src/stores/ReleaseAnnouncementStore.ts b/src/stores/ReleaseAnnouncementStore.ts index 3c36af91ae..ba6a79fec0 100644 --- a/src/stores/ReleaseAnnouncementStore.ts +++ b/src/stores/ReleaseAnnouncementStore.ts @@ -17,7 +17,7 @@ import { Features } from "../settings/Settings"; /** * The features are shown in the array order. */ -const FEATURES = ["threadsActivityCentre"] as const; +const FEATURES = ["threadsActivityCentre", "pinningMessageList"] as const; /** * All the features that can be shown in the release announcements. */ diff --git a/test/components/views/right_panel/__snapshots__/RoomSummaryCard-test.tsx.snap b/test/components/views/right_panel/__snapshots__/RoomSummaryCard-test.tsx.snap index 26a7b88eda..8300f4920d 100644 --- a/test/components/views/right_panel/__snapshots__/RoomSummaryCard-test.tsx.snap +++ b/test/components/views/right_panel/__snapshots__/RoomSummaryCard-test.tsx.snap @@ -186,50 +186,55 @@ exports[` has button to edit topic 1`] = ` data-orientation="horizontal" role="separator" /> - + + + Pinned messages + + + + 0 + + + + + + Pinned messages + + + + 0 + + + + + + Pinned messages + + + + 0 + + +