Improve media index

This commit is contained in:
Ali
2022-12-10 00:23:25 +04:00
parent 683166d411
commit 0bc15c8efa
13 changed files with 691 additions and 6 deletions

View File

@@ -1169,6 +1169,12 @@ private final class NotificationServiceHandler {
parameters: MediaResourceFetchParameters(
tag: nil,
info: resourceFetchInfo(resource: resource),
location: messageId.flatMap { messageId in
return MediaResourceStorageLocation(
peerId: peerId,
messageId: messageId
)
},
isRandomAccessAllowed: true
),
encryptionKey: nil,
@@ -1220,6 +1226,7 @@ private final class NotificationServiceHandler {
parameters: MediaResourceFetchParameters(
tag: nil,
info: resourceFetchInfo(resource: resource),
location: nil,
isRandomAccessAllowed: true
),
encryptionKey: nil,