You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Send how many favorited rooms a user has to Posthog (#7772)
This commit is contained in:
committed by
GitHub
parent
871032e1bc
commit
f6565bfbc8
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user