From e1bbeaaeadc739df2e0f807cdbccfa2657a9806b Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 4 Nov 2022 15:25:31 -0700 Subject: [PATCH] higher query limits for chats and channels --- packages/client/src/pages/channels.vue | 8 ++++---- packages/client/src/pages/messaging/index.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/src/pages/channels.vue b/packages/client/src/pages/channels.vue index 053d312a9..6929eb928 100644 --- a/packages/client/src/pages/channels.vue +++ b/packages/client/src/pages/channels.vue @@ -58,18 +58,18 @@ const tabs = ['featured', 'following', 'owned']; let tab = $ref(tabs[0]); watch($$(tab), () => (syncSlide(tabs.indexOf(tab)))); - const featuredPagination = { endpoint: 'channels/featured' as const, - noPaging: true, + limit: 10, + noPaging: false, }; const followingPagination = { endpoint: 'channels/followed' as const, - limit: 5, + limit: 10, }; const ownedPagination = { endpoint: 'channels/owned' as const, - limit: 5, + limit: 10, }; function create() { diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index aeabfb0d4..88418cdce 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -142,7 +142,7 @@ onMounted(() => { connection.on('message', onMessage); connection.on('read', onRead); - os.api('messaging/history', { group: false }).then(userMessages => { + os.api('messaging/history', { group: false, limit: 100 }).then(userMessages => { os.api('messaging/history', { group: true }).then(groupMessages => { const _messages = userMessages.concat(groupMessages); _messages.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());