         }
 
         if messagesFromDatabase.count > 0 {
-            cacheDataSorted()
-            onDataChanged?()
+            updateData()
         }
 
         requestingData = true

    // MARK: Data Manipulation

    /**
     Returns if the message object is the first message of a day, and in this case
     returns the instance of the date. This is used in order to add the date separator
     in the list of messages.

    }

    /**
     This method is called on every update the messagesQuery get from Realm.
    */
    internal func handleDataUpdates(changes: RealmCollectionChange<Results<Message>>) {
