In my app i'm sending this query:
let defaults = NSUserDefaults.standardUserDefaults()
var time: String?
if defaults.valueForKey("chatsLoadedTime") != nil {
time = "(defaults.valueForKey("chatsLoadedTime") as! NSDate)"
}
chatsRef.queryOrderedByChild("updatedTime").queryStartingAtValue(time).observeEventType(.Value, withBlock: { snap in
Inside this query i update variable time and i want to update this chatsRef query to start at new value time. How can i do this?
