mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Voice Chat UI improvements
This commit is contained in:
@@ -51,6 +51,7 @@ private enum ButtonDescription: Equatable {
|
||||
case bluetooth
|
||||
case airpods
|
||||
case airpodsPro
|
||||
case headphones
|
||||
}
|
||||
|
||||
enum EndType {
|
||||
@@ -205,7 +206,7 @@ final class CallControllerButtonsNode: ASDisplayNode {
|
||||
case .speaker:
|
||||
soundOutput = .speaker
|
||||
case .headphones:
|
||||
soundOutput = .bluetooth
|
||||
soundOutput = .headphones
|
||||
case let .bluetooth(type):
|
||||
switch type {
|
||||
case .generic:
|
||||
@@ -296,7 +297,7 @@ final class CallControllerButtonsNode: ASDisplayNode {
|
||||
case .speaker:
|
||||
soundOutput = .speaker
|
||||
case .headphones:
|
||||
soundOutput = .builtin
|
||||
soundOutput = .headphones
|
||||
case let .bluetooth(type):
|
||||
switch type {
|
||||
case .generic:
|
||||
@@ -467,6 +468,9 @@ final class CallControllerButtonsNode: ASDisplayNode {
|
||||
case .airpodsPro:
|
||||
image = .airpodsPro
|
||||
title = strings.Call_Audio
|
||||
case .headphones:
|
||||
image = .headphones
|
||||
title = strings.Call_Audio
|
||||
}
|
||||
buttonContent = CallControllerButtonItemNode.Content(
|
||||
appearance: .blurred(isFilled: isFilled),
|
||||
|
||||
Reference in New Issue
Block a user