Skip to content
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

Declined recurring events still appear in agenda #19

Open
zakkolar opened this issue Dec 21, 2021 · 3 comments
Open

Declined recurring events still appear in agenda #19

zakkolar opened this issue Dec 21, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@zakkolar
Copy link
Contributor

Sorry - one more observation as I was testing the fix for #12

I noticed a recurring event I declined still shows up when Obsidian imports my agenda even though it doesn't show up in my calendar.

Here are the specifics, if it helps with reproduction:

  • Event repeats every week on Wednesday
  • Someone else owns the event and invited me (this was a bit of user error on their part - I think they only meant to invite me to one occurrence, but they ended up inviting me to all future events)
  • I accepted initially, but then declined "this and all future events" starting the week after the occurrence I attended
@muness
Copy link
Member

muness commented Dec 21, 2021

Indeed, currently the status of the event isn't considered at all. I'll see if I can expose that and/or change the default to hide declined events. Thanks for the bug report.

@muness
Copy link
Member

muness commented Oct 22, 2023

Checking into how I'd even consider RSVP status, I looked up an event that I was invited to as TEST PARTICIPANT. It looks like we'd have to check the attendee list for the calendar's email address (which we don't actually have as far as I can tell, and would have to ask the user to specify per calendar - ICS is weird...) and then for the calendar's email email address look up PARTSTAT.

    "attendee": [
        {
            "params": {
                "CUTYPE": "INDIVIDUAL",
                "ROLE": "REQ-PARTICIPANT",
                "PARTSTAT": "ACCEPTED",
                "CN": "<TEST ORGANIZER>@<TEST>.com",
                "X-NUM-GUESTS": 0
            },
            "val": "<TEST ORGANIZER>@<TEST>.com"
        },
        {
            "params": {
                "CUTYPE": "INDIVIDUAL",
                "ROLE": "REQ-PARTICIPANT",
                "PARTSTAT": "DECLINED",
                "CN": "<TEST PARTICIPANT>@<TEST>.com",
                "X-NUM-GUESTS": 0
            },
            "val": "mailto:TEST PARTICIPANT@<TEST>.com"
        }
    ],

I'll see if the calendar's email is available somewhere...

@muness muness added the enhancement New feature or request label Oct 24, 2023
@muness
Copy link
Member

muness commented Oct 24, 2023

Update: after digging into this, I didn't see an obvious spot where the "whose calendar is this, anyway" is present in the calendar data itself. So, I would have to add calendar owner email as a field in the options. At that point, skipping (or otherwise annotating) rejected calendar events should be straightforward, at least for Google calendars as I can look at the PARTSTAT for that user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants