Skip to content
Commit 220c28bc authored by Daniel Vrátil's avatar Daniel Vrátil 🤖 Committed by Christian Mollekopf
Browse files

CollectionPathResolver: add API to specify collection to resolve relatively to

Top-level collections don't have to have a unique name (for instance one can have
a calendar and a mail account both called 'Work'), but CPR is too stupid for that
and will try to resolve the path from the first matching collection it finds,
which can lead to false or wrong results.

The new constructor allows specifying a collection that the CPR should resolve the
path relatively to. This can be used by resources for example, which can set their
root collection (which they usually now) and then resolve relatively to it.
parent c2cf93dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment