Thank you Andy, I now understand. Since the document is deleted, the access rights it has given are revoked and the users do not have access to the channel.
How would you update my structure so that users are notified that the chatroom has been removed? I could try using roles, but it would first require me to create a role each time a chatroom is created. Also the access to the role would be given by the document, so when the document is deleted the access to the role is revoked and it does not solve my problem. Thanks Jonas On Thursday, July 16, 2015 at 2:24:57 PM UTC+2, ajres wrote: > > I reproduced your issue for the chatroom document type. > > When a document is deleted (contains the _deleted property) any access or > role assignments applied in the sync function for that revision are ignored. > > Logic is here > <https://github.com/couchbase/sync_gateway/blob/master/src/github.com/couchbase/sync_gateway/db/crud.go#L762> > > This results in all chatroom members loosing access to the chatroom > channel and they do not see the deleted revision in their changes feed. > > Andy > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/bfd42225-1af6-4555-b280-dcc7444798ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
