Remove Countly analytics integration (#7808)

This commit is contained in:
Michael Telatynski
2022-02-15 16:58:30 +00:00
committed by GitHub
parent bb5f62edce
commit 8d4e83084c
29 changed files with 6 additions and 1199 deletions

View File

@@ -38,7 +38,6 @@ import DMRoomMap from "./utils/DMRoomMap";
import { getAddressType } from "./UserAddress";
import { getE2EEWellKnown } from "./utils/WellKnownUtils";
import GroupStore from "./stores/GroupStore";
import CountlyAnalytics from "./CountlyAnalytics";
import { isJoinedOrNearlyJoined } from "./utils/membership";
import { VIRTUAL_ROOM_EVENT_TYPE } from "./CallHandler";
import SpaceStore from "./stores/spaces/SpaceStore";
@@ -94,8 +93,6 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
if (opts.guestAccess === undefined) opts.guestAccess = true;
if (opts.encryption === undefined) opts.encryption = false;
const startTime = CountlyAnalytics.getTimestamp();
const client = MatrixClientPeg.get();
if (client.isGuest()) {
dis.dispatch({ action: 'require_registration' });
@@ -270,7 +267,6 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
_trigger: "Created",
});
}
CountlyAnalytics.instance.trackRoomCreate(startTime, roomId);
return roomId;
}, function(err) {
// Raise the error if the caller requested that we do so.