ソースを参照

changed formatting

nayooti 5 年 前
コミット
842ee3bd5b
1 ファイル変更14 行追加10 行削除
  1. 14 10
      deltachat-ios/Controller/ChatViewController.swift

+ 14 - 10
deltachat-ios/Controller/ChatViewController.swift

@@ -233,16 +233,20 @@ class ChatViewController: MessagesViewController {
     }
     }
 
 
     override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
     override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
-        coordinator.animate(alongsideTransition: { (_) -> Void in
-            if self.showCustomNavBar, let titleView = self.navigationItem.titleView as? ChatTitleView {
-                titleView.hideLocationStreamingIndicator() }},
-                            completion: { (_) -> Void in
-                                self.updateTitle(chat: DcChat(id: self.chatId))
-                                self.messagesCollectionView.reloadDataAndKeepOffset()
-                                if self.isLastSectionVisible() {
-                                    self.messagesCollectionView.scrollToBottom(animated: true)
-                                }
-        })
+        coordinator.animate(
+            alongsideTransition: { _ in
+                if self.showCustomNavBar, let titleView = self.navigationItem.titleView as? ChatTitleView {
+                    titleView.hideLocationStreamingIndicator()
+                }
+            },
+            completion: { _ in
+                self.updateTitle(chat: DcChat(id: self.chatId))
+                self.messagesCollectionView.reloadDataAndKeepOffset()
+                if self.isLastSectionVisible() {
+                    self.messagesCollectionView.scrollToBottom(animated: true)
+                }
+            }
+        )
         super.viewWillTransition(to: size, with: coordinator)
         super.viewWillTransition(to: size, with: coordinator)
     }
     }