-
Notifications
You must be signed in to change notification settings - Fork 33
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
Copied events add self as attendee #516
Comments
Confirming this based on code inspection. We do add the organizer as an attendee by default. I'm not sure if this is required in some way, either due to how Thunderbird works or the gdata API. Do you have the ICS of the event you are copying? Does it have an ORGANIZER property? |
I create an event in TB and by default I am added as Organizer. The list of attendees is blank. The copied event has the same Organizer property but with the Organizer added as an attendee. |
This now seems to apply to any event created via Thunderbird. The organizer is always added as a guest. If I remove myself from the list of attendees, everything works normally. Creating an event through Google Calendar doesn't add oneself as attendee either. |
I'm going to need the ICS of the event so I can reproduce this easier, @adrougk is this something you can provide? @unode I'm not sure I understand the distinction you are making. If I create an event in Google Calendar and invite someone else, it shows two people for the event, the organizer (myself) and the person I invited. If I create an event in Thunderbird with no further attendees, I don't see attendees nor organizer in both places. It seems consistent? |
If you are proficient with javascript, maybe you can edit the add-on's sources with this patch to see if it works better: diff --git a/src/legacy/modules/gdataUtils.jsm b/src/legacy/modules/gdataUtils.jsm
index cd4b0e7..21a31e3 100644
--- a/src/legacy/modules/gdataUtils.jsm
+++ b/src/legacy/modules/gdataUtils.jsm
@@ -412,20 +412,13 @@ function EventToJSON(aItem, aOfflineStorage, aIsImport) {
return attendeeData;
};
- let needsOrganizer = true;
let attendeeData = [];
for (let attendee of aItem.getAttendees()) {
attendeeData.push(createAttendee(attendee));
- if (aItem.organizer && aItem.organizer.id == attendee.id) {
- needsOrganizer = false;
- }
}
if (aItem.organizer) {
itemData.organizer = createAttendee(aItem.organizer);
- if (needsOrganizer) {
- attendeeData.push(itemData.organizer);
- }
}
if (attendeeData.length) { |
Sorry, I no longer use this addon and cannot right now reproduce the error nor provide an ICS created by it. |
No problem, thanks for getting back though! @unode could you try the patch? |
I was trying to modify the XPI in-place. Re-installing locally worked around that part. Regarding the patch, I think it goes in the right direction but is incomplete. With the current XPI release the following happens:
With the above patch:
In point 3 having my name in the invitees list doesn't seem to be required. I can remove myself or replace my email with a different address and everything still works normally. |
Turns out this is unrelated and seems to be caused by reinstalling any version of the plugin without restarting Thunderbird. More testing needed... |
Describe the problem and steps to reproduce it:
Copying events without attendees with option "Synchronize events attendees" activated adds self as attendee to copies.
What happened?
I copied an event with zero attendees and the copy was turned into an event with self as attendee. Disactivating the "Synchronize events attendees" option eliminates this behaviour.
What did you expect to happen?
I would expect that the copies of events without attendees would not add self as an attendee.
Anything else we should know?
No error message is produced.
The text was updated successfully, but these errors were encountered: