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 {
|
} else {
|
||||||
let volumeValue = peerEntry.volume.flatMap { $0 / 100 }
|
let volumeValue = peerEntry.volume.flatMap { $0 / 100 }
|
||||||
if let volume = volumeValue, volume != 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 {
|
} else {
|
||||||
text = .text(presentationData.strings.VoiceChat_StatusSpeaking, .constructive)
|
text = .text(presentationData.strings.VoiceChat_StatusSpeaking, .constructive)
|
||||||
}
|
}
|
||||||
|
@ -307,6 +307,7 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
|||||||
let loadingNode: ChatLoadingNode
|
let loadingNode: ChatLoadingNode
|
||||||
private var emptyNode: ChatEmptyNode?
|
private var emptyNode: ChatEmptyNode?
|
||||||
private var emptyType: ChatHistoryNodeLoadState.EmptyType?
|
private var emptyType: ChatHistoryNodeLoadState.EmptyType?
|
||||||
|
private var didDisplayEmptyGreeting = false
|
||||||
private var validEmptyNodeLayout: (CGSize, UIEdgeInsets)?
|
private var validEmptyNodeLayout: (CGSize, UIEdgeInsets)?
|
||||||
var restrictedNode: ChatRecentActionsEmptyNode?
|
var restrictedNode: ChatRecentActionsEmptyNode?
|
||||||
|
|
||||||
@ -539,6 +540,13 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
|
|||||||
var emptyType: ChatHistoryNodeLoadState.EmptyType?
|
var emptyType: ChatHistoryNodeLoadState.EmptyType?
|
||||||
if case let .empty(type) = loadState {
|
if case let .empty(type) = loadState {
|
||||||
emptyType = type
|
emptyType = type
|
||||||
|
if case .joined = type {
|
||||||
|
if strongSelf.didDisplayEmptyGreeting {
|
||||||
|
emptyType = .generic
|
||||||
|
} else {
|
||||||
|
strongSelf.didDisplayEmptyGreeting = true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
strongSelf.updateIsEmpty(emptyType, animated: animated)
|
strongSelf.updateIsEmpty(emptyType, animated: animated)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user