I am building a very simple chat to experiment with Couchbase Lite. (You 
can see it here: https://github.com/jschmid/couchbase-chat)

I have problems with the sync function with deleted documents. When I 
delete a document, the other users do not see it as deleted. They do not 
receive the update.

First I had a very simple function that puts chatrooms and messages in 
channels: 
https://gist.github.com/jschmid/f0a4e125b9db1fd6f750/b1b553264420b088f37d1b2bae73bf29cc62d178
Then I wanted to prevent other users to delete messages that don't belong 
to them so I added a 
check: 
https://gist.github.com/jschmid/f0a4e125b9db1fd6f750/7f2f5d377937bf83cfa8b8c4735516e76b0afe1a
I realised that the deleted document did not belong to the channel anymore 
so I added the channel 
back: 
https://gist.github.com/jschmid/f0a4e125b9db1fd6f750/033f0be9e4f55f28c67c0ac5daee4701878db630
Since it did not work, I tried to also add 
access: 
https://gist.github.com/jschmid/f0a4e125b9db1fd6f750/0ef194a64f7833da7594fdf50a1336b4c3e4378b
(You can take a look at the 
differences: https://gist.github.com/jschmid/f0a4e125b9db1fd6f750/revisions)

Now I am out of ideas and I still do not get notified when a document is 
deleted somewhere else. Note that I do receive the other updates. Can you 
please help me with that?

Thanks
Jonas

-- 
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/ba673089-d495-488f-8d27-c15df7edbcf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to