Remove Countly analytics integration (#7808)
This commit is contained in:
parent
bb5f62edce
commit
8d4e83084c
29 changed files with 6 additions and 1199 deletions
|
@ -32,7 +32,6 @@ import { getCachedRoomIDForAlias, storeRoomAliasInCache } from '../RoomAliasCach
|
|||
import { ActionPayload } from "../dispatcher/payloads";
|
||||
import { Action } from "../dispatcher/actions";
|
||||
import { retry } from "../utils/promise";
|
||||
import CountlyAnalytics, { IJoinRoomEvent } from "../CountlyAnalytics";
|
||||
import { TimelineRenderingType } from "../contexts/RoomContext";
|
||||
import { PosthogAnalytics } from "../PosthogAnalytics";
|
||||
import { ViewRoomPayload } from "../dispatcher/payloads/ViewRoomPayload";
|
||||
|
@ -299,7 +298,6 @@ class RoomViewStore extends Store<ActionPayload> {
|
|||
}
|
||||
|
||||
private async joinRoom(payload: ActionPayload) {
|
||||
const startTime = CountlyAnalytics.getTimestamp();
|
||||
this.setState({
|
||||
joining: true,
|
||||
});
|
||||
|
@ -318,20 +316,6 @@ class RoomViewStore extends Store<ActionPayload> {
|
|||
return err.httpStatus === 504;
|
||||
});
|
||||
|
||||
let type: IJoinRoomEvent["segmentation"]["type"] = undefined;
|
||||
switch ((payload as ViewRoomPayload)._trigger) {
|
||||
case "SlashCommand":
|
||||
type = "slash_command";
|
||||
break;
|
||||
case "Tombstone":
|
||||
type = "tombstone";
|
||||
break;
|
||||
case "RoomDirectory":
|
||||
type = "room_directory";
|
||||
break;
|
||||
}
|
||||
CountlyAnalytics.instance.trackRoomJoin(startTime, roomId, type);
|
||||
|
||||
// We do *not* clear the 'joining' flag because the Room object and/or our 'joined' member event may not
|
||||
// have come down the sync stream yet, and that's the point at which we'd consider the user joined to the
|
||||
// room.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue