Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
track WebRoomHeaderButtonsThreadsButton from new room header (#11885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry authored Nov 16, 2023
1 parent e162814 commit b8ff3c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/rooms/RoomHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import RoomAvatar from "../avatars/RoomAvatar";
import { formatCount } from "../../../utils/FormattingUtils";
import RightPanelStore from "../../../stores/right-panel/RightPanelStore";
import { Linkify, topicToHtml } from "../../../HtmlUtils";
import PosthogTrackers from "../../../PosthogTrackers";

/**
* A helper to transform a notification color to the what the Compound Icon Button
Expand Down Expand Up @@ -220,6 +221,7 @@ export default function RoomHeader({
onClick={(evt) => {
evt.stopPropagation();
RightPanelStore.instance.showOrHidePanel(RightPanelPhases.ThreadPanel);
PosthogTrackers.trackInteraction("WebRoomHeaderButtonsThreadsButton", evt);
}}
aria-label={_t("common|threads")}
>
Expand Down

0 comments on commit b8ff3c1

Please sign in to comment.