TAC: Close Release Announcement when TAC button is clicked (#12475)
* Close RA when TAC button is clicked * Update snapshots
This commit is contained in:
@@ -37,6 +37,7 @@ import { KeyBindingAction } from "../../../../accessibility/KeyboardShortcuts";
|
||||
import { ReleaseAnnouncement } from "../../../structures/ReleaseAnnouncement";
|
||||
import { useIsReleaseAnnouncementOpen } from "../../../../hooks/useIsReleaseAnnouncementOpen";
|
||||
import { useSettingValue } from "../../../../hooks/useSettings";
|
||||
import { ReleaseAnnouncementStore } from "../../../../stores/ReleaseAnnouncementStore";
|
||||
|
||||
interface ThreadsActivityCentreProps {
|
||||
/**
|
||||
@@ -85,6 +86,11 @@ export function ThreadsActivityCentre({ displayButtonLabel }: ThreadsActivityCen
|
||||
disableTooltip={true}
|
||||
displayLabel={displayButtonLabel}
|
||||
notificationLevel={roomsAndNotifications.greatestNotificationLevel}
|
||||
onClick={async () => {
|
||||
// Open the TAC after the release announcement closing
|
||||
setOpen(true);
|
||||
await ReleaseAnnouncementStore.instance.nextReleaseAnnouncement();
|
||||
}}
|
||||
/>
|
||||
</ReleaseAnnouncement>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user