From 8557604064ab0cddeeaba61b22e404add3346932 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Wed, 20 Apr 2022 15:09:33 +1000 Subject: [PATCH] clean up --- Session/Home/HomeVC.swift | 3 +-- Session/Shared/BaseVC.swift | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Session/Home/HomeVC.swift b/Session/Home/HomeVC.swift index 1cba65a15..e680daecf 100644 --- a/Session/Home/HomeVC.swift +++ b/Session/Home/HomeVC.swift @@ -154,7 +154,6 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, NewConv notificationCenter.addObserver(self, selector: #selector(handleLocalProfileDidChangeNotification(_:)), name: Notification.Name(kNSNotificationName_LocalProfileDidChange), object: nil) notificationCenter.addObserver(self, selector: #selector(handleSeedViewedNotification(_:)), name: .seedViewed, object: nil) notificationCenter.addObserver(self, selector: #selector(handleBlockedContactsUpdatedNotification(_:)), name: .blockedContactsUpdated, object: nil) - notificationCenter.addObserver(self, selector: #selector(applicationDidBecomeActive(_:)), name: .OWSApplicationDidBecomeActive, object: nil) // Threads (part 2) threads = YapDatabaseViewMappings(groups: [ TSMessageRequestGroup, TSInboxGroup ], view: TSThreadDatabaseViewExtensionName) // The extension should be registered at this point threads.setIsReversed(true, forGroup: TSInboxGroup) @@ -187,7 +186,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, NewConv reload() } - @objc private func applicationDidBecomeActive(_ notification: Notification) { + override func appDidBecomeActive(_ notification: Notification) { reload() } diff --git a/Session/Shared/BaseVC.swift b/Session/Shared/BaseVC.swift index f646a79c4..8d32b7b43 100644 --- a/Session/Shared/BaseVC.swift +++ b/Session/Shared/BaseVC.swift @@ -107,7 +107,7 @@ class BaseVC : UIViewController { } @objc func appDidBecomeActive(_ notification: Notification) { - // To be implemented + // To be implemented by child class } override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {