update telemost link parsing
This commit is contained in:
1 parent
b454e6f6ee
commit
6afdbd901a
2 files changed
+2
-2
No files matched your search
@@ -2,7 +2,7 @@ package bypass.whitelist.tunnel
|
|||||||
|
|
||||||
enum class CallPlatform(val id: String, val urlMarker: String) {
|
enum class CallPlatform(val id: String, val urlMarker: String) {
|
||||||
VK("vk", ""),
|
VK("vk", ""),
|
||||||
TELEMOST("telemost", "telemost.yandex"),
|
TELEMOST("telemost", "telemost"),
|
||||||
WBSTREAM("wbstream", "wbstream://"),
|
WBSTREAM("wbstream", "wbstream://"),
|
||||||
DION("dion", "dion://");
|
DION("dion", "dion://");
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ enum CallPlatform: String {
|
|||||||
if url.hasPrefix(wbstreamPrefix) {
|
if url.hasPrefix(wbstreamPrefix) {
|
||||||
return .wbstream
|
return .wbstream
|
||||||
}
|
}
|
||||||
if url.contains("telemost.yandex") {
|
if url.contains("telemost") {
|
||||||
return .telemost
|
return .telemost
|
||||||
}
|
}
|
||||||
return .vk
|
return .vk
|
||||||
|
|||||||
Reference in new issue
Block a user