mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] Animated emoji
This commit is contained in:
@@ -529,6 +529,11 @@ public final class Transaction {
|
||||
return self.postbox?.updateMedia(id, update: update) ?? Set()
|
||||
}
|
||||
|
||||
public func storeMediaIfNotPresent(media: Media) {
|
||||
assert(!self.disposed)
|
||||
self.postbox?.storeMediaIfNotPresent(media: media)
|
||||
}
|
||||
|
||||
public func replaceItemCollections(namespace: ItemCollectionId.Namespace, itemCollections: [(ItemCollectionId, ItemCollectionInfo, [ItemCollectionItem])]) {
|
||||
assert(!self.disposed)
|
||||
self.postbox?.replaceItemCollections(namespace: namespace, itemCollections: itemCollections)
|
||||
@@ -2295,6 +2300,10 @@ final class PostboxImpl {
|
||||
return updatedMessageIndices
|
||||
}
|
||||
|
||||
fileprivate func storeMediaIfNotPresent(media: Media) {
|
||||
self.messageHistoryTable.storeMediaIfNotPresent(media: media)
|
||||
}
|
||||
|
||||
fileprivate func replaceItemCollections(namespace: ItemCollectionId.Namespace, itemCollections: [(ItemCollectionId, ItemCollectionInfo, [ItemCollectionItem])]) {
|
||||
var infos: [(ItemCollectionId, ItemCollectionInfo)] = []
|
||||
for (id, info, items) in itemCollections {
|
||||
|
||||
Reference in New Issue
Block a user