ssb: Revise private scanning slightly.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 34m58s

This commit is contained in:
Cory McWilliams 2025-06-07 15:10:37 -04:00
parent 626c18b04e
commit d4a7b86ee7
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🦀",
"previous": "&i6mkfmh4sW8PpILznWL8VxDzI3MX6V5OJWDs47Qxias=.sha256"
"previous": "&j9NkLFuUOfxQhgR6Z3fA4kCWRY1Dcv+7AIAaoaffiBU=.sha256"
}

View File

@ -305,12 +305,16 @@ class TfElement extends LitElement {
const k_chunk_size = 512;
if (cache.range.length) {
for (let i = cache.range[1]; i < latest; i += k_chunk_size) {
ranges.push([i, Math.min(i + k_chunk_size, latest), true]);
ranges.push([
i,
Math.min(i + k_chunk_size, latest),
true,
]);
}
for (let i = cache.range[0]; i >= 0; i -= k_chunk_size) {
ranges.push([
Math.max(i - k_chunk_size, 0),
Math.min(cache.range[0], i + k_chunk_size),
i,
false,
]);
}
@ -328,7 +332,7 @@ class TfElement extends LitElement {
messages.rowid > ?1 AND
messages.rowid <= ?2 AND
json(messages.content) LIKE '"%'
ORDER BY sequence DESC
ORDER BY messages.rowid DESC
`,
[range[0], range[1]]
);