After going through the source code and documentation I understood that it is not possible to clarify what client installation is triggering the live query event. Could you please confirm or correct me?
The code is taking the client session and installation from the subscription itself and not from the save/delete request on that particular object, am I right? So there is nothing to compare in the trigger code to set sendEvent = false
Parse.Cloud.afterLiveQueryEvent('MyObject', async (request) => {
if (...???...) {
request.sendEvent = false;
}
});
What I would like to achieve… Multiple users (or the same user from multiple devices) are subscribed on the same document and one of the user updates it. Then all devices/users except the one modifying it would get a liveQuery trigger.
Or is there a way in ParseSwift SDK how to ignore/filter events triggered by that client SDK?
How could I avoid that liveQuery callbacks in the client SDK would cause an update in client twice:
…update in client → save in Parse Server → liveQuery → update in client