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

Commit 14391a7

Browse files
committed
Post-merge fix
1 parent 532b2e5 commit 14391a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/views/elements/MiniAvatarUploader.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import AccessibleButton from "./AccessibleButton";
2121
import Tooltip from './Tooltip';
2222
import MatrixClientContext from "../../../contexts/MatrixClientContext";
2323
import {useTimeout} from "../../../hooks/useTimeout";
24+
import Analytics from "../../../Analytics";
25+
import CountlyAnalytics from '../../../CountlyAnalytics';
2426

2527
export const AVATAR_SIZE = 52;
2628

@@ -56,6 +58,8 @@ const MiniAvatarUploader: React.FC<IProps> = ({ hasAvatar, hasAvatarLabel, noAva
5658
onChange={async (ev) => {
5759
if (!ev.target.files?.length) return;
5860
setBusy(true);
61+
Analytics.trackEvent("mini_avatar", "upload");
62+
CountlyAnalytics.instance.track("mini_avatar_upload");
5963
const file = ev.target.files[0];
6064
const uri = await cli.uploadContent(file);
6165
await setAvatarUrl(uri);

0 commit comments

Comments
 (0)