Data is visible from other channels for a user

How are you exactly verifying that the document to channel assignment is happening correctly. FFR, please do not use the adminUI. This is an unsupported feature.
Please output the results the _raw API or all_docs filtered by channels

Couple of things that may be happening

  • Not 100% sure if it matters but you may want to align the case associated with the channel names (you have “channel1” and “Channel1” respectively)
  • It is possible that you updated the sync function after the documents were already synced down by the clients

So as a next step, would suggest following

  • Add a new document that you expect to be assigned exclusively to ChannelX
  • Share _raw API output to confirm channels that document is assigned to is correct
  • Share the log output of the couchbase lite log query