mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-10-31 00:12:39 +00:00
From 0.16.21 Stalwart fails the whole CalendarEvent/set with `forbidden` when the account may not send scheduling messages, so an event with attendees was not saved at all and the calendar showed only "Failed to save event". Such a refusal now surfaces as SchedulingDeniedError, and the calendar names the server's reason and offers to save the event without sending the invitations.
13 lines
442 B
TypeScript
13 lines
442 B
TypeScript
/**
|
|
* The server refused the change because of the iTIP messages it would send
|
|
* (Stalwart 0.16.21+ fails the whole CalendarEvent/set with `forbidden`
|
|
* when the account may not send scheduling messages). The same change
|
|
* without `sendSchedulingMessages` can still be saved.
|
|
*/
|
|
export class SchedulingDeniedError extends Error {
|
|
constructor(readonly reason: string) {
|
|
super(reason);
|
|
this.name = 'SchedulingDeniedError';
|
|
}
|
|
}
|