Skip to content

Commit b0b0d29

Browse files
committed
Fix #456 Fix #568 Fix #595 Close #538: authuser parameter missing in Google Meet links
1 parent 0a5964c commit b0b0d29

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

MeetingBar/EventStores/Calendar.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MBCalendar: Hashable {
1212
let title: String
1313
let ID: String
1414
let source: String
15-
let email: String?
15+
var email: String?
1616
var selected = false
1717
let color: NSColor
1818

MeetingBar/EventStores/EKEventStore.swift

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ extension EKEventStore: EventStore {
7474
for rawEvent in EKEventStore.shared.events(matching: predicate) {
7575
let calendar = calendars.first { $0.ID == rawEvent.calendar.calendarIdentifier }!
7676

77+
if calendar.email == nil, let email = rawEvent.attendees?.first(where: { $0.isCurrentUser })?.safeNSURL?.resourceSpecifier {
78+
calendar.email = email
79+
}
80+
7781
var status: MBEventStatus
7882
switch rawEvent.status {
7983
case .confirmed:

0 commit comments

Comments
 (0)