Post-merge fix
This commit is contained in:
parent
532b2e5ced
commit
14391a7295
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,8 @@ import AccessibleButton from "./AccessibleButton";
|
||||||
import Tooltip from './Tooltip';
|
import Tooltip from './Tooltip';
|
||||||
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
||||||
import {useTimeout} from "../../../hooks/useTimeout";
|
import {useTimeout} from "../../../hooks/useTimeout";
|
||||||
|
import Analytics from "../../../Analytics";
|
||||||
|
import CountlyAnalytics from '../../../CountlyAnalytics';
|
||||||
|
|
||||||
export const AVATAR_SIZE = 52;
|
export const AVATAR_SIZE = 52;
|
||||||
|
|
||||||
|
@ -56,6 +58,8 @@ const MiniAvatarUploader: React.FC<IProps> = ({ hasAvatar, hasAvatarLabel, noAva
|
||||||
onChange={async (ev) => {
|
onChange={async (ev) => {
|
||||||
if (!ev.target.files?.length) return;
|
if (!ev.target.files?.length) return;
|
||||||
setBusy(true);
|
setBusy(true);
|
||||||
|
Analytics.trackEvent("mini_avatar", "upload");
|
||||||
|
CountlyAnalytics.instance.track("mini_avatar_upload");
|
||||||
const file = ev.target.files[0];
|
const file = ev.target.files[0];
|
||||||
const uri = await cli.uploadContent(file);
|
const uri = await cli.uploadContent(file);
|
||||||
await setAvatarUrl(uri);
|
await setAvatarUrl(uri);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue