Skip to content

Commit

Permalink
Merge pull request #17514 from wordpress-mobile/issue/17503-remove-du…
Browse files Browse the repository at this point in the history
…plicate-tracks

Remove duplicate tracks items
  • Loading branch information
Emily Laguna authored Nov 22, 2021
2 parents 1c27148 + 9316132 commit dfa2dc1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,6 @@ - (void)showMediaLibraryFromSource:(BlogDetailsNavigationSource)source

- (void)showPeople
{
[WPAppAnalytics track:WPAnalyticsStatOpenedPeople withBlog:self.blog];
PeopleViewController *controller = [PeopleViewController controllerWithBlog:self.blog];
controller.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
[self showDetailViewController:controller sender:self];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ class PeopleViewController: UITableViewController, UIViewControllerRestoration {
super.viewWillAppear(animated)
tableView.deselectSelectedRowWithAnimation(true)
refreshNoResultsView()
WPAnalytics.track(.openedPeople)

guard let blog = blog else {
return
}

WPAppAnalytics.track(.openedPeople, with: blog)
}

override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ import WordPressFlux

var contentType: ReaderContentType = .topic {
didSet {
if contentType == .saved {
if oldValue != .saved, contentType == .saved {
updateContent(synchronize: false)
trackSavedListAccessed()
}
Expand Down

0 comments on commit dfa2dc1

Please sign in to comment.