|
@@ -55,17 +55,6 @@ class ChatViewController: MessagesViewController {
|
|
// TODO: display message about nothing being configured
|
|
// TODO: display message about nothing being configured
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
- let chat = MRChat(id: chatId)
|
|
|
|
- updateTitleView(title: chat.name, subtitle: chat.subtitle)
|
|
|
|
-
|
|
|
|
- if let image = chat.profileImage {
|
|
|
|
- navigationItem.rightBarButtonItem = UIBarButtonItem(image: image, style: .done, target: self, action: #selector(chatProfilePressed))
|
|
|
|
- } else {
|
|
|
|
- let initialsLabel = InitialsLabel(name: chat.name, color: chat.color, size: 28)
|
|
|
|
- navigationItem.rightBarButtonItem = UIBarButtonItem(customView: initialsLabel)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
configureMessageCollectionView()
|
|
configureMessageCollectionView()
|
|
|
|
|
|
if !disableWriting {
|
|
if !disableWriting {
|
|
@@ -83,6 +72,17 @@ class ChatViewController: MessagesViewController {
|
|
// this will be removed in viewWillDisappear
|
|
// this will be removed in viewWillDisappear
|
|
navigationController?.navigationBar.addGestureRecognizer(navBarTap)
|
|
navigationController?.navigationBar.addGestureRecognizer(navBarTap)
|
|
|
|
|
|
|
|
+ let chat = MRChat(id: chatId)
|
|
|
|
+ updateTitleView(title: chat.name, subtitle: chat.subtitle)
|
|
|
|
+
|
|
|
|
+ if let image = chat.profileImage {
|
|
|
|
+ navigationItem.rightBarButtonItem = UIBarButtonItem(image: image, style: .done, target: self, action: #selector(chatProfilePressed))
|
|
|
|
+ } else {
|
|
|
|
+ let initialsLabel = InitialsLabel(name: chat.name, color: chat.color, size: 28)
|
|
|
|
+ navigationItem.rightBarButtonItem = UIBarButtonItem(customView: initialsLabel)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
configureMessageMenu()
|
|
configureMessageMenu()
|
|
|
|
|
|
if #available(iOS 11.0, *) {
|
|
if #available(iOS 11.0, *) {
|