fixup: do not try to sync saved state when not in sync mode

Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
Yohan Boniface 2025-02-07 17:53:48 +01:00
parent b8db07a4ce
commit a172c4abea

View file

@ -127,10 +127,13 @@ export class SyncEngine {
}
saved() {
this.transport.send('SavedMessage', {
sender: this.peerId,
lastKnownHLC: this._operations.getLastKnownHLC(),
})
if (this.offline) return
if (this.transport) {
this.transport.send('SavedMessage', {
sender: this.peerId,
lastKnownHLC: this._operations.getLastKnownHLC(),
})
}
}
_send(inputMessage) {