Disallow scheduled voice chat screen expansion

This commit is contained in:
Ilya Laktyushin 2021-09-26 23:41:17 +03:00
parent bafbbef336
commit dedf0317d3

View File

@ -5832,6 +5832,10 @@ public final class VoiceChatController: ViewController {
let translation = recognizer.translation(in: self.contentContainer.view) let translation = recognizer.translation(in: self.contentContainer.view)
var velocity = recognizer.velocity(in: self.contentContainer.view) var velocity = recognizer.velocity(in: self.contentContainer.view)
if self.isScheduled && (translation.y < 0.0 || velocity.y < 0.0) {
return
}
if case let .known(value) = contentOffset, value > 0.0 { if case let .known(value) = contentOffset, value > 0.0 {
velocity = CGPoint() velocity = CGPoint()
} else if case .unknown = contentOffset { } else if case .unknown = contentOffset {