diff --git a/submodules/TelegramUI/Sources/ChatMessageWebpageBubbleContentNode.swift b/submodules/TelegramUI/Sources/ChatMessageWebpageBubbleContentNode.swift index d851547ee1..0d47b1f878 100644 --- a/submodules/TelegramUI/Sources/ChatMessageWebpageBubbleContentNode.swift +++ b/submodules/TelegramUI/Sources/ChatMessageWebpageBubbleContentNode.swift @@ -289,13 +289,13 @@ final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContentNode { actionTitle = item.presentationData.strings.Conversation_ViewGroup case "telegram_message": actionTitle = item.presentationData.strings.Conversation_ViewMessage - case "telegram_voicechat": + case "telegram_voicechat", "telegram_livestream", "telegram_videochat": if let channel = item.message.peers[item.message.id.peerId] as? TelegramChannel, case let .broadcast = channel.info { title = item.presentationData.strings.Conversation_LiveStream } else { title = item.presentationData.strings.Conversation_VoiceChat } - if webpage.url.contains("voicechat=") { + if webpage.url.contains("voicechat=") || webpage.url.contains("videochat=") || webpage.url.contains("livestream=") { actionTitle = item.presentationData.strings.Conversation_JoinVoiceChatAsSpeaker } else { actionTitle = item.presentationData.strings.Conversation_JoinVoiceChatAsListener diff --git a/submodules/TelegramUI/Sources/OpenUrl.swift b/submodules/TelegramUI/Sources/OpenUrl.swift index 5114643757..d202ea4e55 100644 --- a/submodules/TelegramUI/Sources/OpenUrl.swift +++ b/submodules/TelegramUI/Sources/OpenUrl.swift @@ -624,10 +624,10 @@ func openExternalUrlImpl(context: AccountContext, urlContext: OpenURLContext, ur game = value } else if queryItem.name == "post" { post = value - } else if queryItem.name == "voicechat" { + } else if queryItem.name == "voicechat" || queryItem.name == "videochat" || queryItem.name == "livestream" { voiceChat = value } - } else if queryItem.name == "voicechat" { + } else if queryItem.name == "voicechat" || queryItem.name == "videochat" || queryItem.name == "livestream" { voiceChat = "" } } diff --git a/submodules/UrlHandling/Sources/UrlHandling.swift b/submodules/UrlHandling/Sources/UrlHandling.swift index bed77ec35c..476bb70806 100644 --- a/submodules/UrlHandling/Sources/UrlHandling.swift +++ b/submodules/UrlHandling/Sources/UrlHandling.swift @@ -136,10 +136,10 @@ public func parseInternalUrl(query: String) -> ParsedInternalUrl? { return .peerName(peerName, .groupBotStart(value)) } else if queryItem.name == "game" { return nil - } else if queryItem.name == "voicechat" { + } else if queryItem.name == "voicechat" || queryItem.name == "videochat" || queryItem.name == "livestream" { return .peerName(peerName, .voiceChat(value)) } - } else if queryItem.name == "voicechat" { + } else if queryItem.name == "voicechat" || queryItem.name == "videochat" || queryItem.name == "livestream" { return .peerName(peerName, .voiceChat(nil)) } }