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(
|
await deferredToPromise(
|
||||||
collection.fetch({
|
collection.fetch({
|
||||||
index: {
|
index: {
|
||||||
// 'hasVisualMediaAttachments' index on
|
|
||||||
// [conversationId, hasVisualMediaAttachments, received_at]
|
|
||||||
name: 'hasVisualMediaAttachments',
|
name: 'hasVisualMediaAttachments',
|
||||||
lower: [conversationId, hasVisualMediaAttachments, lowerReceivedAt],
|
lower: [conversationId, hasVisualMediaAttachments, lowerReceivedAt],
|
||||||
upper: [conversationId, hasVisualMediaAttachments, upperReceivedAt],
|
upper: [conversationId, hasVisualMediaAttachments, upperReceivedAt],
|
||||||
order: 'desc',
|
order: 'desc',
|
||||||
},
|
},
|
||||||
limit: 10,
|
limit: 50,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue