mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various Fixes
This commit is contained in:
parent
10612a88a4
commit
b6ed138716
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user