mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
23ef77e230
6 changed files with 12 additions and 9 deletions
|
|
@ -22,6 +22,7 @@ static_library(
|
|||
"//submodules/PresentationDataUtils:PresentationDataUtils",
|
||||
"//submodules/TelegramCallsUI/CallsEmoji:CallsEmoji",
|
||||
"//submodules/SemanticStatusNode:SemanticStatusNode",
|
||||
"//submodules/TooltipUI:TooltipUI",
|
||||
],
|
||||
frameworks = [
|
||||
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
|
||||
|
|
|
|||
|
|
@ -615,7 +615,7 @@ final class CallControllerNode: ViewControllerTracingNode, CallControllerNodePro
|
|||
if self.outgoingVideoNodeValue != nil || self.incomingVideoNodeValue != nil || self.candidateOutgoingVideoNodeValue != nil || self.candidateIncomingVideoNodeValue != nil {
|
||||
if let audioOutputState = self.audioOutputState, let currentOutput = audioOutputState.currentOutput {
|
||||
switch currentOutput {
|
||||
case .headphones:
|
||||
case .headphones, .speaker:
|
||||
break
|
||||
case let .port(port) where port.type == .bluetooth:
|
||||
break
|
||||
|
|
@ -654,9 +654,11 @@ final class CallControllerNode: ViewControllerTracingNode, CallControllerNodePro
|
|||
strongSelf.incomingVideoNodeValue = incomingVideoNode
|
||||
if let expandedVideoNode = strongSelf.expandedVideoNode {
|
||||
strongSelf.minimizedVideoNode = expandedVideoNode
|
||||
strongSelf.containerNode.insertSubnode(incomingVideoNode, belowSubnode: expandedVideoNode)
|
||||
} else {
|
||||
strongSelf.containerNode.insertSubnode(incomingVideoNode, belowSubnode: strongSelf.dimNode)
|
||||
}
|
||||
strongSelf.expandedVideoNode = incomingVideoNode
|
||||
strongSelf.containerNode.insertSubnode(incomingVideoNode, belowSubnode: strongSelf.dimNode)
|
||||
strongSelf.updateButtonsMode(transition: .animated(duration: 0.4, curve: .spring))
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ typedef NS_ENUM(int32_t, OngoingCallDataSaving) {
|
|||
- (NSData * _Nonnull)getDerivedState;
|
||||
|
||||
- (void)setIsMuted:(bool)isMuted;
|
||||
- (void)setIsLowBatteryLevel:(bool)isLowBatteryLevel;
|
||||
- (void)setNetworkType:(OngoingCallNetworkType)networkType;
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -419,12 +419,6 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
|
|||
}
|
||||
}
|
||||
|
||||
- (void)setIsLowBatteryLevel:(bool)isLowBatteryLevel {
|
||||
if (_tgVoip) {
|
||||
_tgVoip->setIsLowBatteryLevel(isLowBatteryLevel);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setNetworkType:(OngoingCallNetworkType)networkType {
|
||||
if (_networkType != networkType) {
|
||||
_networkType = networkType;
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ typedef NS_ENUM(int32_t, OngoingCallDataSavingWebrtc) {
|
|||
- (NSData * _Nonnull)getDerivedState;
|
||||
|
||||
- (void)setIsMuted:(bool)isMuted;
|
||||
- (void)setIsLowBatteryLevel:(bool)isLowBatteryLevel;
|
||||
- (void)setNetworkType:(OngoingCallNetworkTypeWebrtc)networkType;
|
||||
- (void)makeIncomingVideoView:(void (^_Nonnull)(UIView<OngoingCallThreadLocalContextWebrtcVideoView> * _Nullable))completion;
|
||||
- (void)requestVideo:(OngoingCallThreadLocalContextVideoCapturer * _Nullable)videoCapturer;
|
||||
|
|
|
|||
|
|
@ -640,6 +640,12 @@ static void (*InternalVoipLoggingFunction)(NSString *) = NULL;
|
|||
}
|
||||
}
|
||||
|
||||
- (void)setIsLowBatteryLevel:(bool)isLowBatteryLevel {
|
||||
if (_tgVoip) {
|
||||
_tgVoip->setIsLowBatteryLevel(isLowBatteryLevel);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setNetworkType:(OngoingCallNetworkTypeWebrtc)networkType {
|
||||
if (_networkType != networkType) {
|
||||
_networkType = networkType;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue