     }
 
     private func reloadPrivateMessages() {
-        scene.showRefreshIndicator()
+        scene?.showRefreshIndicator()
         privateMessagesService.refreshMessages()
     }
 

    }

    func messagesSceneDidTapLogoutButton() {
        delegate.showLogoutAlert { (dismissAlert) in
            self.authenticationService.logout { (result) in
                dismissAlert()

                switch result {
                case .success:
                    self.delegate.messagesModuleDidRequestDismissal()

                case .failure:
                    self.delegate.showLogoutFailedAlert()
                }
            }
        }

        presentedMessages = messages

        let binder = MessageBinder(messages: messages, dateFormatter: dateFormatter)
        scene?.bindMessages(count: messages.count, with: binder)

        if messages.isEmpty {
            scene?.hideMessagesList()
            scene?.showNoMessagesPlaceholder()
        } else {
            scene?.showMessagesList()
            scene?.hideNoMessagesPlaceholder()
        }
    }

