|
|
|
@ -201,7 +201,7 @@ extension EventCenter {
|
|
|
|
|
for event in events { |
|
|
|
|
if selectedCalendars.contains(event.event.calendar.calendarIdentifier) { |
|
|
|
|
if filteredEvents[date] == nil { |
|
|
|
|
filteredEvents[date] = [] |
|
|
|
|
filteredEvents[date] = Array() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
filteredEvents[date]?.append(event) |
|
|
|
@ -342,7 +342,7 @@ extension EventCenter {
|
|
|
|
|
return eventInfo |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static var dataDetector: NSDataDetector? = nil |
|
|
|
|
static var dataDetector: NSDataDetector? |
|
|
|
|
|
|
|
|
|
// Borrowing logic from Ityscal |
|
|
|
|
@discardableResult |
|
|
|
@ -356,7 +356,7 @@ extension EventCenter {
|
|
|
|
|
if actualLink.contains("zoom.us/j/") || actualLink.contains("zoom.us/s/") || actualLink.contains("zoom.us/w/") { |
|
|
|
|
// Create a Zoom App link |
|
|
|
|
let workspace = NSWorkspace.shared |
|
|
|
|
if (workspace.urlForApplication(toOpen: URL(string: "zoommtg://")!) != nil) { |
|
|
|
|
if workspace.urlForApplication(toOpen: URL(string: "zoommtg://")!) != nil { |
|
|
|
|
actualLink = actualLink.replacingOccurrences(of: "https://", with: "zoommtg://") |
|
|
|
|
actualLink = actualLink.replacingOccurrences(of: "?", with: "&") |
|
|
|
|
actualLink = actualLink.replacingOccurrences(of: "/j/", with: "/join?confno=") |
|
|
|
@ -365,7 +365,6 @@ extension EventCenter {
|
|
|
|
|
if let appLink = URL(string: actualLink) { |
|
|
|
|
return appLink |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} else if actualLink.contains("zoommtg://") |
|
|
|
|
|| actualLink.contains("meet.google.com/") |
|
|
|
|