Session Cache Implementation
Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -303,7 +303,11 @@ final class RemoteStore: ObservableObject {
|
|||||||
pathMonitor.onChange = { [weak self] in self?.handlePathChange() }
|
pathMonitor.onChange = { [weak self] in self?.handlePathChange() }
|
||||||
pathMonitor.start()
|
pathMonitor.start()
|
||||||
discovery.start()
|
discovery.start()
|
||||||
if isPaired { reconnect() }
|
if isPaired {
|
||||||
|
// Show the saved chat history immediately, before any host connects.
|
||||||
|
if sessions.isEmpty { sessions = cachedSummaries }
|
||||||
|
reconnect()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A network-path change: tell each host connection to re-plan its transport now.
|
/// A network-path change: tell each host connection to re-plan its transport now.
|
||||||
|
|||||||
Reference in New Issue
Block a user