Use matrix-analytics-events generated stubs (locally for now).

Track screens, removing any that aren't part of the schema.
This commit is contained in:
Doug
2021-11-24 18:04:54 +00:00
parent b5f3a56666
commit cea6cd145b
45 changed files with 137 additions and 232 deletions
@@ -109,9 +109,6 @@
{
[super viewWillAppear:animated];
// Screen tracking
[Analytics.shared trackScreen:@"FilesGlobalSearch"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshSearchResult:) name:kMXSessionDidLeaveRoomNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshSearchResult:) name:kMXSessionNewRoomNotification object:nil];
}
@@ -115,9 +115,6 @@
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
// Screen tracking
[Analytics.shared trackScreen:@"MessagesGlobalSearch"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshSearchResult:) name:kMXSessionDidLeaveRoomNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshSearchResult:) name:kMXSessionNewRoomNotification object:nil];
@@ -108,7 +108,7 @@
[super viewWillAppear:animated];
// Screen tracking
[Analytics.shared trackScreen:@"Directory"];
[Analytics.shared trackScreen:AnalyticsScreenRoomDirectory];
// Observe kAppDelegateDidTapStatusBarNotificationObserver.
kAppDelegateDidTapStatusBarNotificationObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kAppDelegateDidTapStatusBarNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
@@ -80,7 +80,6 @@
[titles addObject:[VectorL10n searchRooms]];
recentsViewController = [RecentsViewController recentListViewController];
recentsViewController.enableSearchBar = NO;
recentsViewController.screenName = @"UnifiedSearchRooms";
[viewControllers addObject:recentsViewController];
[titles addObject:[VectorL10n searchMessages]];
@@ -144,9 +143,6 @@
{
[super viewWillAppear:animated];
// Screen tracking
[Analytics.shared trackScreen:@"UnifiedSearch"];
// Let's child display the loading not the home view controller
if (self.activityIndicator)
{