|
@@ -212,6 +212,18 @@ class ChatViewController: UITableViewController {
|
|
|
updateTitle(chat: dcContext.getChat(chatId: chatId))
|
|
|
}
|
|
|
|
|
|
+ loadMessages()
|
|
|
+
|
|
|
+ if RelayHelper.sharedInstance.isForwarding() {
|
|
|
+ askToForwardMessage()
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ override func viewDidAppear(_ animated: Bool) {
|
|
|
+ super.viewDidAppear(animated)
|
|
|
+ AppStateRestorer.shared.storeLastActiveChat(chatId: chatId)
|
|
|
+
|
|
|
let nc = NotificationCenter.default
|
|
|
msgChangedObserver = nc.addObserver(
|
|
|
forName: dcNotificationChanged,
|
|
@@ -261,17 +273,6 @@ class ChatViewController: UITableViewController {
|
|
|
self.updateTitle(chat: self.dcContext.getChat(chatId: self.chatId))
|
|
|
}
|
|
|
|
|
|
- loadMessages()
|
|
|
-
|
|
|
- if RelayHelper.sharedInstance.isForwarding() {
|
|
|
- askToForwardMessage()
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- override func viewDidAppear(_ animated: Bool) {
|
|
|
- super.viewDidAppear(animated)
|
|
|
- AppStateRestorer.shared.storeLastActiveChat(chatId: chatId)
|
|
|
-
|
|
|
// things that do not affect the chatview
|
|
|
// and are delayed after the view is displayed
|
|
|
DispatchQueue.global(qos: .background).async { [weak self] in
|