[[[self.myRootRef queryOrderedByChild:@"timestamp"] queryStartingAtValue:timestamp] observeEventType:FEventTypeValue withBlock:^(FDataSnapshot *snapshot) {
timestamp = snapshot.timestamp;
}];
This clearly doesn't work. The timestamp is updated but the new timestamp is not used as a query parameter. I was wondering if there's a way to change the query inside the block, or if there's some other way to achieve this? Any help would be greatly appreciated. Thanks!