Add trigger to join and view room metrics events #5769

- Added trigger for JoinedRoom event
- Tracking ViewRoom event for rooms and events
This commit is contained in:
Gil Eluard
2022-03-15 10:31:24 +01:00
parent 59a6f2d356
commit 0df41c3b90
34 changed files with 355 additions and 5 deletions
@@ -801,6 +801,7 @@
if (indexPath.row < directChatsArray.count)
{
// Open this room
Analytics.shared.viewRoomTrigger = AnalyticsViewRoomTriggerSearchContactDetail;
[[AppDelegate theDelegate] showRoom:directChatsArray[indexPath.row] andEventId:nil withMatrixSession:self.mainSession];
}
else
@@ -1053,7 +1054,8 @@
self->roomCreationRequest = nil;
[self removePendingActionMask];
Analytics.shared.viewRoomTrigger = AnalyticsViewRoomTriggerCreated;
[[AppDelegate theDelegate] showRoom:room.roomId andEventId:nil withMatrixSession:self.mainSession];
} failure:onFailure];