-
Notifications
You must be signed in to change notification settings - Fork 107
Allow sharing with circles #995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #995 +/- ##
==========================================
- Coverage 24.88% 24.58% -0.31%
==========================================
Files 48 48
Lines 2479 2510 +31
Branches 471 480 +9
==========================================
Hits 617 617
- Misses 1722 1752 +30
- Partials 140 141 +1 |
| if (results.data.ocs.meta.status === 'failure') { | ||
| return [] | ||
| } | ||
| let circles = [] | ||
| if (Array.isArray(results.data.ocs.data.circles)) { | ||
| circles = circles.concat(results.data.ocs.data.circles) | ||
| } | ||
| if (Array.isArray(results.data.ocs.data.exact.circles)) { | ||
| circles = circles.concat(results.data.ocs.data.exact.circles) | ||
| } | ||
| if (circles.length === 0) { | ||
| return [] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really need an api for this....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, it's a bit messy and also leads to errors, see nextcloud/calendar#2220.
But that's how it is for now.
Signed-off-by: Raimund Schlüßler <[email protected]>
ead9057 to
fd1e90a
Compare
This PR implements sharing with a circle.
Closes #169.