mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 13:35:19 +00:00
Fix alert for pro
This commit is contained in:
parent
836ed086f4
commit
541c9d41d4
@ -3458,13 +3458,18 @@ extension AppDelegate {
|
||||
SGLogger.shared.log("SGIAP", "Setting new primary user id: \(userId)")
|
||||
SGSimpleSettings.shared.primaryUserId = stringUserId
|
||||
}
|
||||
} else {
|
||||
SGLogger.shared.log("SGIAP", "Status expired")
|
||||
DispatchQueue.main.async {
|
||||
NotificationCenter.default.post(name: .SGIAPHelperValidationErrorNotification, object: nil, userInfo: ["error": "PayWall.ValidationError.Expired"])
|
||||
}
|
||||
}
|
||||
value.status = newStatus
|
||||
} else {
|
||||
SGLogger.shared.log("SGIAP", "Status \(value.status) for \(userId) hasn't changed")
|
||||
if newStatus < 1 {
|
||||
if newStatus < 2 {
|
||||
DispatchQueue.main.async {
|
||||
NotificationCenter.default.post(name: .SGIAPHelperValidationErrorNotification, object: nil, userInfo: ["error": "PayWall.ValidationError.Expired"])
|
||||
NotificationCenter.default.post(name: .SGIAPHelperValidationErrorNotification, object: nil, userInfo: ["error": "PayWall.ValidationError.TryAgain"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user