Document change notification

Hello,

I registered an observer to listen to ‘NSNotification.Name.cblDocumentChange’. This works fine for external Notifications.
But this Notification gets also fired, when I save chases to this CBLModel…

So how can I listen to only external changes?

I’m using Version 1.4 on iOS.

Thanks,
Stefan

CBLDatabaseChange has a property that says whether it’s a local or remote change.

What property?

CBLDocumentChange

The sourceURL property is nil for a local change.