1
0
mirror of https://github.com/etesync/android synced 2024-11-15 20:38:58 +00:00

Event invitations: only send invitations for events we created locally.

This commit is contained in:
Tom Hacohen 2020-11-02 09:13:24 +02:00
parent 97d28a8be8
commit 06c511eb67

View File

@ -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)