Voice chat fixes

This commit is contained in:
Ali
2020-11-30 00:56:40 +04:00
parent 0b07e34439
commit e73ef7ceef
3 changed files with 103 additions and 67 deletions

View File

@@ -852,7 +852,9 @@ public func rebuildControllerStackAfterSupergroupUpgrade(controller: ViewControl
if controllers[i] === controller {
for j in 0 ..< i {
if controllers[j] is ChatController {
controllers.removeSubrange(j + 1 ... i - 1)
if j + 1 <= i - 1 {
controllers.removeSubrange(j + 1 ... i - 1)
}
break
}
}