Add trigger to join and view room metrics events #5769

- Code tweaks
This commit is contained in:
Gil Eluard
2022-03-16 16:10:28 +01:00
parent 70b3b38866
commit 903508092b
-1
View File
@@ -288,7 +288,6 @@ extension Analytics {
/// - isDM: Whether the room is a DM.
/// - isSpace: Whether the room is a Space.
func trackViewRoom(asDM isDM: Bool, isSpace: Bool) {
MXLog.debug("[Analytics] trackViewRoom (asDM:\(isDM), isSpace:\(isSpace), trigger:\(viewRoomTrigger.trigger?.rawValue ?? "unknown"), activeSpace:\(viewRoomActiveSpace.space?.rawValue ?? "unknown"))")
let event = AnalyticsEvent.ViewRoom(activeSpace: viewRoomActiveSpace.space,
isDM: isDM,
isSpace: isSpace,