@onlyworlds/sdk 4.97.0 → 4.97.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.97.1] - 2026-10-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **A lens's mail part no longer reads a known-of stub as a message to everyone.** A stub never serves `characters`, and the message profile reads a Message with no recipients as addressed to everyone, so a guest's mail part listed every Message it knew only as a stub, unread. The mail part now reads whole bodies only, as the API reads it. A shared edge case holds it, the same file as the Python package's.
|
|
13
|
+
|
|
8
14
|
## [4.97.0] - 2026-10-28
|
|
9
15
|
|
|
10
16
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -4505,7 +4505,7 @@ function mailPart(r, mode, budget, clock) {
|
|
|
4505
4505
|
const empty = { unread: [], read: [], rows: [], cut: {}, totals: { unread: 0, read: 0 } };
|
|
4506
4506
|
if (r.character === null) return empty;
|
|
4507
4507
|
const inView = r.order.filter((id) => r.view.has(id));
|
|
4508
|
-
const messages = inView.map((id) => r.body(id)).filter((b) => isMessage(b));
|
|
4508
|
+
const messages = inView.filter((id) => !r.stubs.has(id)).map((id) => r.body(id)).filter((b) => isMessage(b));
|
|
4509
4509
|
const relations = inView.filter((id) => r.typeOf.get(id) === "relation").map((id) => r.body(id));
|
|
4510
4510
|
const mark = readMarkOf(relations, r.character, r.members);
|
|
4511
4511
|
const mine = unreadFor(messages, r.character, null, r.members);
|