diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-03-29 21:08:14 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-03-31 20:35:33 +0200 |
commit | 7a8e3fa16970296de6e553631fab7cfd67f461c2 (patch) | |
tree | 20de3e97ddfb80ee9542f6d7898caa6f694fa5eb /src/Erebos/Attach.hs | |
parent | 92fac6d75f0600f628ef459105385c0cf3f21e40 (diff) |
Keep weak reference to previous local state
Diffstat (limited to 'src/Erebos/Attach.hs')
-rw-r--r-- | src/Erebos/Attach.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Erebos/Attach.hs b/src/Erebos/Attach.hs index df61406..fad6197 100644 --- a/src/Erebos/Attach.hs +++ b/src/Erebos/Attach.hs @@ -52,7 +52,7 @@ instance PairingResult AttachIdentity where guard $ iddPrev (fromSigned $ idData identity) == [eiddStoredBase curid] return (identity, keys) - pairingFinalizeRequest (identity, keys) = updateLocalHead_ $ \slocal -> do + pairingFinalizeRequest (identity, keys) = updateLocalState_ $ \slocal -> do let owner = finalOwner identity st <- getStorage pkeys <- mapM (copyStored st) [ idKeyIdentity owner, idKeyMessage owner ] |