Fetch Historical Transcript Data
Nucleic-Session: 11465D90-A8F3-43AA-A1DC-37EA1EC1B909 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -469,7 +469,13 @@ final class HostConnection {
|
|||||||
send(.listDashboard)
|
send(.listDashboard)
|
||||||
// Warm-resubscribe from what we already have, so a reconnect on a long transcript replays
|
// Warm-resubscribe from what we already have, so a reconnect on a long transcript replays
|
||||||
// only the gap rather than snapping back to the host's 200-event tail.
|
// only the gap rather than snapping back to the host's 200-event tail.
|
||||||
if let id = openSessionID { send(.subscribe(Subscribe(sessionID: id, sinceSeq: openMaxSeq, verbosity: .full))) }
|
if let id = openSessionID {
|
||||||
|
send(.subscribe(Subscribe(sessionID: id, sinceSeq: openMaxSeq, verbosity: .full)))
|
||||||
|
// Also pull full history — the subscribe above only replays the tail (or, on a warm
|
||||||
|
// reconnect, the missed gap). No-op after the first open of this session, so an
|
||||||
|
// ordinary reconnect keeps the transcript on screen instead of refetching it.
|
||||||
|
fetchFullTranscript(id)
|
||||||
|
}
|
||||||
case .sessionList(let list):
|
case .sessionList(let list):
|
||||||
sessions = list
|
sessions = list
|
||||||
callbacks.didUpdate()
|
callbacks.didUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user