whereNotEqualTo not working
qandeelabbassi opened this issue · 1 comments
qandeelabbassi commented
I have following live query for subscribing to class objects that do not belong to current user:
ParseQuery<ParseObject> parseQuery = ParseQuery.getQuery("myclass");
parseQuery.include("user");
parseQuery.whereNotEqualTo("user", ParseUser.createWithoutData(ParseUser.class, ParseUser.getCurrentUser().getObjectId()));
SubscriptionHandling<ParseObject> subscriptionHandling = parseLiveQueryClient.subscribe(parseQuery);
subscriptionHandling.handleEvent(SubscriptionHandling.Event.CREATE, new SubscriptionHandling.HandleEventCallback<ParseObject>() {
@Override
public void onEvent(ParseQuery<ParseObject> query, ParseObject obj) {
}
});
It doesn't work, I am still getting objects that have current user in the "user" field. I can't find any problem in it, its a simple query.
noaker commented
Happened to me too. It seems that the subscription only applies to the Class and ignores any constraints/restrictions specified