             textView.text = ""
             rightButton.isEnabled = true
 
+            appendMessages(messages: [message], completion: nil)
+
             SubscriptionManager.sendTextMessage(message) { _ in
                 Realm.executeOnMainThread({ (realm) in
                     message.temporary = false


    internal func updateSubscriptionMessages() {
        messagesQuery = subscription.fetchMessagesQueryResults()
        loadMoreMessagesFrom(date: nil)
//        updateMessagesQueryNotificationBlock()

        MessageManager.getHistory(subscription, lastMessageDate: nil) { [weak self] in
//            guard let messages = self?.subscription.fetchMessages() else { return }
//
//            self?.appendMessages(messages: Array(messages), updateScrollPosition: false, completion: {
//                self?.activityIndicator.stopAnimating()
//
//                UIView.performWithoutAnimation {
//                    self?.scrollToBottom()
//                }
//
//                self?.isRequestingHistory = false
//            })
        }

        MessageManager.changes(subscription)
    }

        messagesToken?.stop()
        messagesToken = messagesQuery.addNotificationBlock { [weak self] changes in
            switch changes {
            case .initial: break
            case .update(_, _, let insertions, let modifications):
                if insertions.count > 0 {
                    var newMessages: [Message] = []
