mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
higher query limits for chats and channels
This commit is contained in:
parent
338cbac563
commit
e1bbeaaead
2 changed files with 5 additions and 5 deletions
|
@ -58,18 +58,18 @@ const tabs = ['featured', 'following', 'owned'];
|
||||||
let tab = $ref(tabs[0]);
|
let tab = $ref(tabs[0]);
|
||||||
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||||
|
|
||||||
|
|
||||||
const featuredPagination = {
|
const featuredPagination = {
|
||||||
endpoint: 'channels/featured' as const,
|
endpoint: 'channels/featured' as const,
|
||||||
noPaging: true,
|
limit: 10,
|
||||||
|
noPaging: false,
|
||||||
};
|
};
|
||||||
const followingPagination = {
|
const followingPagination = {
|
||||||
endpoint: 'channels/followed' as const,
|
endpoint: 'channels/followed' as const,
|
||||||
limit: 5,
|
limit: 10,
|
||||||
};
|
};
|
||||||
const ownedPagination = {
|
const ownedPagination = {
|
||||||
endpoint: 'channels/owned' as const,
|
endpoint: 'channels/owned' as const,
|
||||||
limit: 5,
|
limit: 10,
|
||||||
};
|
};
|
||||||
|
|
||||||
function create() {
|
function create() {
|
||||||
|
|
|
@ -142,7 +142,7 @@ onMounted(() => {
|
||||||
connection.on('message', onMessage);
|
connection.on('message', onMessage);
|
||||||
connection.on('read', onRead);
|
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 => {
|
os.api('messaging/history', { group: true }).then(groupMessages => {
|
||||||
const _messages = userMessages.concat(groupMessages);
|
const _messages = userMessages.concat(groupMessages);
|
||||||
_messages.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
_messages.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||||
|
|
Loading…
Reference in a new issue