Wire up more Posthog tracking (#7689)
This commit is contained in:
parent
254dbeeccb
commit
5620b83d34
17 changed files with 221 additions and 77 deletions
|
@ -70,6 +70,7 @@ import SpaceStore from "../../../stores/spaces/SpaceStore";
|
|||
import CallHandler from "../../../CallHandler";
|
||||
import UserIdentifierCustomisations from '../../../customisations/UserIdentifier';
|
||||
import CopyableText from "../elements/CopyableText";
|
||||
import { ScreenName } from '../../../PosthogTrackers';
|
||||
|
||||
// we have a number of types defined from the Matrix spec which can't reasonably be altered here.
|
||||
/* eslint-disable camelcase */
|
||||
|
@ -1307,6 +1308,13 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
|
|||
selectText(e.target);
|
||||
}
|
||||
|
||||
private get screenName(): ScreenName {
|
||||
switch (this.props.kind) {
|
||||
case KIND_DM:
|
||||
return "StartChat";
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
let spinner = null;
|
||||
if (this.state.busy) {
|
||||
|
@ -1584,6 +1592,7 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
|
|||
hasCancel={true}
|
||||
onFinished={this.props.onFinished}
|
||||
title={title}
|
||||
screenName={this.screenName}
|
||||
>
|
||||
<div className='mx_InviteDialog_content'>
|
||||
{ dialogContent }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue