Fix voice chat missing peer requests

This commit is contained in:
Ali
2021-01-29 18:11:32 +05:00
parent 7608fff064
commit 1e1d9ae977
8 changed files with 3326 additions and 3310 deletions

View File

@@ -57,6 +57,7 @@ private final class ImportManager {
case chatAdminRequired
case invalidChatType
case userBlocked
case limitExceeded
}
enum State {
@@ -119,6 +120,8 @@ private final class ImportManager {
return .generic
case .userBlocked:
return .userBlocked
case .limitExceeded:
return .limitExceeded
}
}
|> deliverOnMainQueue).start(next: { [weak self] session in
@@ -533,6 +536,8 @@ public final class ChatImportActivityScreen: ViewController {
errorText = self.presentationData.strings.ChatImportActivity_ErrorGeneric
case .userBlocked:
errorText = self.presentationData.strings.ChatImportActivity_ErrorUserBlocked
case .limitExceeded:
errorText = self.presentationData.strings.ChatImportActivity_ErrorLimitExceeded
}
self.statusText.attributedText = NSAttributedString(string: errorText, font: Font.regular(17.0), textColor: self.presentationData.theme.list.itemDestructiveColor)
case .done: