improvements

This commit is contained in:
Mikhail Filimonov
2025-01-21 21:04:45 +04:00
parent 02eae90956
commit d596e18260
2 changed files with 14 additions and 2 deletions

View File

@@ -753,9 +753,12 @@ public extension TelegramEngine.EngineData.Item {
}
if let cachedData = view.cachedPeerData as? CachedUserData {
return cachedData.starGiftsCount
} else {
return nil
}
if let cachedData = view.cachedPeerData as? CachedChannelData {
return cachedData.starGiftsCount
}
return nil
}
}