mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Voice Chats Fixes
This commit is contained in:
parent
16ab35c357
commit
1be29aacda
@ -6191,7 +6191,7 @@ Sorry for the inconvenience.";
|
||||
"VoiceChat.SelectAccount" = "Select Account";
|
||||
"VoiceChat.DisplayAs" = "Display Me As...";
|
||||
"VoiceChat.DisplayAsInfo" = "Choose whether you want to be displayed as your personal account or as your channel.";
|
||||
"VoiceChat.DisplayAsInfoGroup" = "Choose whether you want to be displayed as your personal account or as your group.";
|
||||
"VoiceChat.DisplayAsInfoGroup" = "Choose whether you want to be displayed as your personal account, this group, or one of your channels.";
|
||||
"VoiceChat.DisplayAsSuccess" = "Members of this voice chat will now see your as **%@**.";
|
||||
"VoiceChat.PersonalAccount" = "personal account";
|
||||
"VoiceChat.EditTitle" = "Edit Voice Chat Title";
|
||||
|
@ -1508,6 +1508,8 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
self.displayNode.insertSubnode(inCallStatusBar, belowSubnode: bottomOverlayContainer)
|
||||
} else if let globalScrollToTopNode = self.globalScrollToTopNode {
|
||||
self.displayNode.insertSubnode(inCallStatusBar, belowSubnode: globalScrollToTopNode)
|
||||
} else if let globalOverlayContainerParent = self.globalOverlayContainerParent {
|
||||
self.displayNode.insertSubnode(inCallStatusBar, belowSubnode: globalOverlayContainerParent)
|
||||
} else {
|
||||
self.displayNode.addSubnode(inCallStatusBar)
|
||||
}
|
||||
|
@ -3445,7 +3445,7 @@ public final class VoiceChatController: ViewController {
|
||||
|
||||
private let idleTimerExtensionDisposable = MetaDisposable()
|
||||
|
||||
private weak var currentOverlayController: VoiceChatOverlayController?
|
||||
public weak var currentOverlayController: VoiceChatOverlayController?
|
||||
|
||||
private var validLayout: ContainerViewLayout?
|
||||
|
||||
|
@ -25,6 +25,7 @@ import SettingsUI
|
||||
import AppLock
|
||||
import AccountUtils
|
||||
import ContextUI
|
||||
import TelegramCallsUI
|
||||
|
||||
final class UnauthorizedApplicationContext {
|
||||
let sharedContext: SharedAccountContextImpl
|
||||
@ -760,6 +761,11 @@ final class AuthorizedApplicationContext {
|
||||
})
|
||||
|
||||
self.rootController.setForceInCallStatusBar((self.context.sharedContext as! SharedAccountContextImpl).currentCallStatusBarNode)
|
||||
if let groupCallController = self.context.sharedContext.currentGroupCallController as? VoiceChatController {
|
||||
if let overlayController = groupCallController.currentOverlayController {
|
||||
self.rootController.presentOverlay(controller: overlayController, inGlobal: true, blockInteraction: false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
deinit {
|
||||
|
@ -4294,7 +4294,11 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
|
||||
if peer.peer.id.namespace == Namespaces.Peer.CloudUser {
|
||||
subtitle = strongSelf.presentationData.strings.VoiceChat_PersonalAccount
|
||||
} else if let subscribers = peer.subscribers {
|
||||
subtitle = strongSelf.presentationData.strings.Conversation_StatusSubscribers(subscribers)
|
||||
if let peer = peer.peer as? TelegramChannel, case .broadcast = peer.info {
|
||||
subtitle = strongSelf.presentationData.strings.Conversation_StatusSubscribers(subscribers)
|
||||
} else {
|
||||
subtitle = strongSelf.presentationData.strings.Conversation_StatusMembers(subscribers)
|
||||
}
|
||||
}
|
||||
|
||||
let avatarSize = CGSize(width: 28.0, height: 28.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user