From 29ae062d31b5c130244c03d6ba382535018115b8 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 4 Nov 2022 18:42:08 -0700 Subject: [PATCH] better limits for now --- packages/client/src/pages/messaging/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index 88418cdce6..1a99113cfa 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -142,8 +142,8 @@ onMounted(() => { connection.on('message', onMessage); connection.on('read', onRead); - os.api('messaging/history', { group: false, limit: 100 }).then(userMessages => { - os.api('messaging/history', { group: true }).then(groupMessages => { + os.api('messaging/history', { group: false, limit: 30 }).then(userMessages => { + os.api('messaging/history', { group: true, limit: 5 }).then(groupMessages => { const _messages = userMessages.concat(groupMessages); _messages.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); messages = _messages;