|
@@ -76,7 +76,7 @@ class ChatViewController: MessagesViewController {
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
super.viewWillAppear(animated)
|
|
super.viewWillAppear(animated)
|
|
-
|
|
|
|
|
|
+ NavBarUtils.setSmallTitle(navigationController: navigationController)
|
|
// this will be removed in viewWillDisappear
|
|
// this will be removed in viewWillDisappear
|
|
navigationController?.navigationBar.addGestureRecognizer(navBarTap)
|
|
navigationController?.navigationBar.addGestureRecognizer(navBarTap)
|
|
|
|
|
|
@@ -97,12 +97,6 @@ class ChatViewController: MessagesViewController {
|
|
|
|
|
|
configureMessageMenu()
|
|
configureMessageMenu()
|
|
|
|
|
|
- if #available(iOS 11.0, *) {
|
|
|
|
- if disableWriting {
|
|
|
|
- navigationController?.navigationBar.prefersLargeTitles = true
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
let nc = NotificationCenter.default
|
|
let nc = NotificationCenter.default
|
|
msgChangedObserver = nc.addObserver(
|
|
msgChangedObserver = nc.addObserver(
|
|
forName: dcNotificationChanged,
|
|
forName: dcNotificationChanged,
|
|
@@ -146,12 +140,6 @@ class ChatViewController: MessagesViewController {
|
|
let cnt = Int(dc_get_fresh_msg_cnt(mailboxPointer, UInt32(chatId)))
|
|
let cnt = Int(dc_get_fresh_msg_cnt(mailboxPointer, UInt32(chatId)))
|
|
logger.info("updating count for chat \(cnt)")
|
|
logger.info("updating count for chat \(cnt)")
|
|
UIApplication.shared.applicationIconBadgeNumber = cnt
|
|
UIApplication.shared.applicationIconBadgeNumber = cnt
|
|
-
|
|
|
|
- if #available(iOS 11.0, *) {
|
|
|
|
- if disableWriting {
|
|
|
|
- navigationController?.navigationBar.prefersLargeTitles = false
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
override func viewDidDisappear(_ animated: Bool) {
|
|
override func viewDidDisappear(_ animated: Bool) {
|