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 <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Oct 13, 2024
1 parent 12e8875 commit d5b21e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,8 @@ export default {
alreadyInvitedEmails() {
const emails = this.invitees.map(attendee => removeMailtoPrefix(attendee.uri))
const principal = this.principalsStore.getCurrentUserPrincipal
if (principal) {
emails.push(principal.emailAddress)
if (this.calendarObjectInstance.organizer.uri) {
emails.push(removeMailtoPrefix(this.calendarObjectInstance.organizer.uri))

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L259 was not covered by tests
}
return emails
Expand Down

0 comments on commit d5b21e2

Please sign in to comment.