mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 23:47:44 +02:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user