From 06c511eb6701f92ce655f61f53f6be9462a291e4 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 2 Nov 2020 09:13:24 +0200 Subject: [PATCH] Event invitations: only send invitations for events we created locally. --- .../com/etesync/syncadapter/syncadapter/CalendarSyncManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarSyncManager.kt b/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarSyncManager.kt index ad266529..6536314d 100644 --- a/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarSyncManager.kt +++ b/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarSyncManager.kt @@ -147,7 +147,7 @@ constructor(context: Context, account: Account, settings: AccountSettings, extra for (local in localDirty) { val event = local.event - if (event?.attendees?.isEmpty()!!) { + if (event?.attendees?.isEmpty()!! || !event.organizer?.value?.replace("mailto:", "").equals(account.name)) { return } createInviteAttendeesNotification(event, local.content)