Send how many favorited rooms a user has to Posthog (#7772)
This commit is contained in:
parent
871032e1bc
commit
f6565bfbc8
13 changed files with 47 additions and 15 deletions
|
@ -84,6 +84,7 @@ import { useRoomState } from "../../hooks/useRoomState";
|
|||
import { shouldShowComponent } from "../../customisations/helpers/UIComponents";
|
||||
import { UIComponent } from "../../settings/UIFeature";
|
||||
import { UPDATE_EVENT } from "../../stores/AsyncStore";
|
||||
import PosthogTrackers from "../../PosthogTrackers";
|
||||
|
||||
interface IProps {
|
||||
space: Room;
|
||||
|
@ -386,6 +387,7 @@ const SpaceLandingAddButton = ({ space }) => {
|
|||
e.stopPropagation();
|
||||
closeMenu();
|
||||
|
||||
PosthogTrackers.trackInteraction("WebSpaceHomeCreateRoomButton", e);
|
||||
if (await showCreateNewRoom(space)) {
|
||||
defaultDispatcher.fire(Action.UpdateSpaceHierarchy);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue