mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-05-12 08:31:34 +02:00
chore: migrate to new version + fixed several critical bugs
- Migrated project to latest Telegram iOS base (v12.3.2+) - Fixed circular dependency between GhostModeManager and MiscSettingsManager - Fixed multiple Bazel build configuration errors (select() default conditions) - Fixed duplicate type definitions in PeerInfoScreen - Fixed swiftmodule directory resolution in build scripts - Added Ghostgram Settings tab in main Settings menu with all 5 features - Cleared sensitive credentials from config.json (template-only now) - Excluded bazel-cache from version control
This commit is contained in:
@@ -1676,18 +1676,23 @@ private final class StickerPackContainer: ASDisplayNode {
|
||||
self.onLoading()
|
||||
|
||||
var loadedCount = 0
|
||||
var error = false
|
||||
var fetchingCount = 0
|
||||
for content in contents {
|
||||
if case .result = content {
|
||||
switch content {
|
||||
case .result:
|
||||
loadedCount += 1
|
||||
} else if case .none = content {
|
||||
error = true
|
||||
case .fetching:
|
||||
fetchingCount += 1
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if error {
|
||||
self.onError()
|
||||
} else if loadedCount == contents.count {
|
||||
if fetchingCount == 0 {
|
||||
if loadedCount == 0 {
|
||||
self.onError()
|
||||
return
|
||||
}
|
||||
self.onReady()
|
||||
|
||||
if !contents.isEmpty && self.currentStickerPacks.isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user