Small changes to try and fix crash

This commit is contained in:
Nathan Tannar
2019-03-26 12:20:11 -07:00
parent 488e501ef3
commit 2138b3ba5d
3 changed files with 9 additions and 32 deletions
@@ -183,8 +183,8 @@ final class AdvancedExampleViewController: ChatViewController {
func setTypingIndicatorViewHidden(_ isHidden: Bool, performUpdates updates: (() -> Void)? = nil) {
updateTitleView(title: "MessageKit", subtitle: isHidden ? "2 Online" : "Typing...")
setTypingIndicatorViewHidden(isHidden, animated: true, whilePerforming: updates) { [weak self] (_) in
if self?.isLastSectionVisible() == true {
setTypingIndicatorViewHidden(isHidden, animated: true, whilePerforming: updates) { [weak self] success in
if success, self?.isLastSectionVisible() == true {
self?.messagesCollectionView.scrollToBottom(animated: true)
}
}