Skip to content

Commit c71f5a1

Browse files
authored
fix: never consider empty email as self (#892)
1 parent 41d6d9d commit c71f5a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/kotlin/org/fossify/calendar/activities/EventActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,7 @@ class EventActivity : SimpleActivity() {
21262126
val currentCalendar =
21272127
calDAVHelper.getCalDAVCalendars("", true).firstOrNull { it.id == mEventCalendarId }
21282128
mAttendees.forEach {
2129-
it.isMe = it.email == currentCalendar?.ownerName
2129+
it.isMe = it.email != "" && it.email == currentCalendar?.ownerName
21302130
}
21312131

21322132
mAttendees.sortWith(

app/src/main/kotlin/org/fossify/calendar/helpers/CalDAVHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ class CalDAVHelper(val context: Context) {
675675
email = email,
676676
status = cursor.getIntValue(Attendees.ATTENDEE_STATUS),
677677
photoUri = "",
678-
isMe = email == calendar.ownerName,
678+
isMe = email != "" && email == calendar.ownerName,
679679
relationship = cursor.getIntValue(Attendees.ATTENDEE_RELATIONSHIP)
680680
)
681681
attendees.add(attendee)

0 commit comments

Comments
 (0)