diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index 46d22198fe..262955ad44 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -353,7 +353,7 @@ public final class VoiceChatController: ViewController { } else { let volumeValue = peerEntry.volume.flatMap { $0 / 100 } if let volume = volumeValue, volume != 100 { - text = .text("\(volume / 100)% \(presentationData.strings.VoiceChat_StatusSpeaking)", .constructive) + text = .text("\(volume)% \(presentationData.strings.VoiceChat_StatusSpeaking)", .constructive) } else { text = .text(presentationData.strings.VoiceChat_StatusSpeaking, .constructive) } diff --git a/submodules/TelegramUI/Sources/ChatControllerNode.swift b/submodules/TelegramUI/Sources/ChatControllerNode.swift index b1ca31a873..b14a3fcf57 100644 --- a/submodules/TelegramUI/Sources/ChatControllerNode.swift +++ b/submodules/TelegramUI/Sources/ChatControllerNode.swift @@ -307,6 +307,7 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate { let loadingNode: ChatLoadingNode private var emptyNode: ChatEmptyNode? private var emptyType: ChatHistoryNodeLoadState.EmptyType? + private var didDisplayEmptyGreeting = false private var validEmptyNodeLayout: (CGSize, UIEdgeInsets)? var restrictedNode: ChatRecentActionsEmptyNode? @@ -539,6 +540,13 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate { var emptyType: ChatHistoryNodeLoadState.EmptyType? if case let .empty(type) = loadState { emptyType = type + if case .joined = type { + if strongSelf.didDisplayEmptyGreeting { + emptyType = .generic + } else { + strongSelf.didDisplayEmptyGreeting = true + } + } } strongSelf.updateIsEmpty(emptyType, animated: animated) }