Skip to content

Commit

Permalink
fix: allow adding self to shared event
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Oct 19, 2024
1 parent f3d117c commit 479ba82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@ export default {
alreadyInvitedEmails() {
const emails = this.invitees.map(attendee => removeMailtoPrefix(attendee.uri))
// A user should be able to invite themselves if they are not the organizer
const principal = this.principalsStore.getCurrentUserPrincipal
if (principal) {
const organizerUri = this.calendarObjectInstance.organizer?.uri

Check warning on line 260 in src/components/Editor/Invitees/InviteesList.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Invitees/InviteesList.vue#L260

Added line #L260 was not covered by tests
if (organizerUri) {
emails.push(removeMailtoPrefix(organizerUri))
} else if (principal) {
emails.push(principal.emailAddress)
}
Expand Down

0 comments on commit 479ba82

Please sign in to comment.