mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
improvements
This commit is contained in:
parent
02eae90956
commit
d596e18260
@ -662,6 +662,15 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
||||
peerIds.append(senderId)
|
||||
}
|
||||
return peerIds
|
||||
case let .starGiftUnique(_, _, _, _, _, _, _, peerId, senderId, _):
|
||||
var peerIds: [PeerId] = []
|
||||
if let peerId {
|
||||
peerIds.append(peerId)
|
||||
}
|
||||
if let senderId {
|
||||
peerIds.append(senderId)
|
||||
}
|
||||
return peerIds
|
||||
default:
|
||||
return []
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user