Load 50 attachments for media gallery
This commit is contained in:
parent
0a4be2e0f4
commit
809e34b0f4
1 changed files with 1 additions and 3 deletions
|
@ -29,14 +29,12 @@ export const fetchVisualMediaAttachments = async ({
|
|||
await deferredToPromise(
|
||||
collection.fetch({
|
||||
index: {
|
||||
// 'hasVisualMediaAttachments' index on
|
||||
// [conversationId, hasVisualMediaAttachments, received_at]
|
||||
name: 'hasVisualMediaAttachments',
|
||||
lower: [conversationId, hasVisualMediaAttachments, lowerReceivedAt],
|
||||
upper: [conversationId, hasVisualMediaAttachments, upperReceivedAt],
|
||||
order: 'desc',
|
||||
},
|
||||
limit: 10,
|
||||
limit: 50,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue