Drop initial room load from 20 per list to 10

dbkr/sss
Kegan Dougal 2024-09-18 12:02:59 +01:00
parent 7621fe2682
commit 7662b990a3
1 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ const ENCRYPTED_SUBSCRIPTION = Object.assign(
// on the count for each one. // on the count for each one.
const sssLists: Record<string, MSC3575List> = { const sssLists: Record<string, MSC3575List> = {
spaces: { spaces: {
ranges: [[0, 20]], ranges: [[0, 10]],
timeline_limit: 0, // we don't care about the most recent message for spaces timeline_limit: 0, // we don't care about the most recent message for spaces
required_state: REQUIRED_STATE_LIST, required_state: REQUIRED_STATE_LIST,
include_old_rooms: { include_old_rooms: {
@ -118,7 +118,7 @@ const sssLists: Record<string, MSC3575List> = {
}, },
}, },
invites: { invites: {
ranges: [[0, 20]], ranges: [[0, 10]],
timeline_limit: 1, // most recent message display timeline_limit: 1, // most recent message display
required_state: REQUIRED_STATE_LIST, required_state: REQUIRED_STATE_LIST,
include_old_rooms: { include_old_rooms: {
@ -130,7 +130,7 @@ const sssLists: Record<string, MSC3575List> = {
}, },
}, },
favourites: { favourites: {
ranges: [[0, 20]], ranges: [[0, 10]],
timeline_limit: 1, // most recent message display timeline_limit: 1, // most recent message display
required_state: REQUIRED_STATE_LIST, required_state: REQUIRED_STATE_LIST,
include_old_rooms: { include_old_rooms: {
@ -142,7 +142,7 @@ const sssLists: Record<string, MSC3575List> = {
}, },
}, },
dms: { dms: {
ranges: [[0, 20]], ranges: [[0, 10]],
timeline_limit: 1, // most recent message display timeline_limit: 1, // most recent message display
required_state: REQUIRED_STATE_LIST, required_state: REQUIRED_STATE_LIST,
include_old_rooms: { include_old_rooms: {
@ -158,7 +158,7 @@ const sssLists: Record<string, MSC3575List> = {
}, },
untagged: { untagged: {
// SSS will dupe suppress invites/dms from here, so we don't need "not dms, not invites" // SSS will dupe suppress invites/dms from here, so we don't need "not dms, not invites"
ranges: [[0, 20]], ranges: [[0, 10]],
timeline_limit: 1, // most recent message display timeline_limit: 1, // most recent message display
required_state: REQUIRED_STATE_LIST, required_state: REQUIRED_STATE_LIST,
include_old_rooms: { include_old_rooms: {