mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
fix: synchronize read state across web and native clients
Track readable content revisions and durable read cursors in the hub. Acknowledge only rendered foreground tails, persist offline read operations, and preserve newer manual unread choices across devices. Migrate existing history to a read baseline and cover pagination receipts with shared native conformance fixtures.
This commit is contained in:
@@ -73,6 +73,7 @@ public enum OlderLoadOutcome: Sendable {
|
||||
/// type) — deliberately mirroring the web's instance-based change detection,
|
||||
/// not deep equality.
|
||||
public struct MessageWindowState: Equatable, Sendable {
|
||||
public var readThroughRevision: Int?
|
||||
public let sessionId: String
|
||||
/// Window rows in position order (queued rows re-merged after each trim).
|
||||
public var messages: [WindowMessage] = []
|
||||
|
||||
Reference in New Issue
Block a user