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() { saved() {
this.transport.send('SavedMessage', { if (this.offline) return
sender: this.peerId, if (this.transport) {
lastKnownHLC: this._operations.getLastKnownHLC(), this.transport.send('SavedMessage', {
}) sender: this.peerId,
lastKnownHLC: this._operations.getLastKnownHLC(),
})
}
} }
_send(inputMessage) { _send(inputMessage) {