Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions MeetingBar/Assets.xcassets/vendor-icons/Contents.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"images" : [
{
"filename" : "yandexTelemost_icon.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions MeetingBar/MeetingServices.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ enum MeetingServices: String, Codable, CaseIterable {
case zmPage = "zm.page"
case livekit = "LiveKit Meet"
case other = "Other"
case yandexTelemost = "yandexTelemost"

var localizedValue: String {
switch self {
Expand Down Expand Up @@ -327,6 +328,7 @@ struct LinksRegex {
let calcom = try! NSRegularExpression(pattern: #"https?://app.cal\.com/video/[A-Za-z0-9./]+"#)
let zmPage = try! NSRegularExpression(pattern: #"https?://([a-zA-Z0-9.]+)\.zm\.page"#)
let livekit = try! NSRegularExpression(pattern: #"https?://meet[a-zA-Z0-9.]*\.livekit\.io/rooms/[a-zA-Z0-9-#]+"#)
let yandexTelemost = try! NSRegularExpression(pattern: #"https?://telemost.yandex.ru/j/[0-9]+"#)
}

func getRegexForMeetingService(_ service: MeetingServices) -> NSRegularExpression? {
Expand Down Expand Up @@ -497,6 +499,10 @@ func getIconForMeetingService(_ meetingService: MeetingServices?) -> NSImage {
image = NSImage(named: "lifesize_icon")!
image.size = NSSize(width: 16, height: 16)

case .some(.yandexTelemost):
image = NSImage(named: "yandexTelemost_icon")!
image.size = NSSize(width: 16, height: 16)

// tested and verified
case .some(.facebook_workspace):
image = NSImage(named: "facebook_workplace_icon")!
Expand Down
Loading