Skip to content

Commit

Permalink
Add showAttendees seting to calendar format
Browse files Browse the repository at this point in the history
  • Loading branch information
muness committed Jan 13, 2024
1 parent 0d981e4 commit f1ceb69
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 405 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class ICSPlugin extends Plugin {
e.format.summary ? e.summary : '',
e.format.location ? callLinkOrLocation : '',
e.format.description && e.description ? `\n\t- ${e.description}` : '',
e.attendees.length > 0 ? `\n\t- Attendees:\n${attendeeList}` : ''
e.format.showAttendees && e.attendees.length > 0 ? `\n\t- Attendees:\n${attendeeList}` : ''
].filter(Boolean).join(' ').trim();
}

Expand Down
2 changes: 2 additions & 0 deletions src/settings/ICSSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface Calendar {
summary: boolean;
location: boolean;
description: boolean;
showAttendees: boolean;
}
}

Expand All @@ -28,6 +29,7 @@ export const DEFAULT_CALENDAR_FORMAT = {
location: true,
description: false,
calendarType: 'remote', // Set the default type to 'remote'
showAttendees: false,
};

export const DEFAULT_SETTINGS: ICSSettings = {
Expand Down
Loading

0 comments on commit f1ceb69

Please sign in to comment.