Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.
Transfers: tell the sender about a pause as the last bytes arrive
Bee4fd8224c490e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9b83aea..9c41509 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -54,6 +54,9 @@ change things that need a step from you, and its notes say so.- Windows: the emoji panel (**Win+.**) and input methods for Chinese andother languages type into the phone's screen and app windows while youcontrol them. Only plain key presses got through before.+- Pausing a transfer on the receiving device just as its last bytes+ arrived left the sending device waiting, showing it as still sending. Both+ now show it paused.## 0.1.3 (2026-10-15)diff --git a/core/nectarlink-core/src/transfer.rs b/core/nectarlink-core/src/transfer.rsindex 95cb2af..9f727c3 100644--- a/core/nectarlink-core/src/transfer.rs+++ b/core/nectarlink-core/src/transfer.rs@@ -1620,7 +1620,13 @@ async fn receive(shared: Arc<Shared>, peer: DeviceId, mut send: SendStream, mut).await{- Ok(()) if *pause_rx.borrow() => TransferState::Paused,+ // Paused just as the last bytes came in: tell the sender, which is+ // waiting for the confirmation, as any other pause does.+ Ok(()) if *pause_rx.borrow() => {+ let _ = recv.stop(VarInt::from_u32(files::PAUSED));+ let _ = send.reset(VarInt::from_u32(files::PAUSED));+ TransferState::Paused+ }Ok(()) => match store(&shared, &offer, &part, &dir).await {Ok(saved) => {let _ = write_frame(&mut send, &Envelope::empty(files::DONE).to_cbor()).await;