diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-07-02 20:02:11 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-07-02 21:52:57 +0200 |
commit | edafccea465f1f9448a1a7ae555b8615e5b5ac1b (patch) | |
tree | 85e7b6b5c4e610c27552ad4a8ecb4c4da764ade7 /src/Contact.hs | |
parent | 5afb63aced2a6c5ec2fd3604f1b898d803686d8d (diff) |
Shared state helpers usable with other local head updates
Diffstat (limited to 'src/Contact.hs')
-rw-r--r-- | src/Contact.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Contact.hs b/src/Contact.hs index 6585985..2d1e2a9 100644 --- a/src/Contact.hs +++ b/src/Contact.hs @@ -165,7 +165,7 @@ contactReject :: (MonadIO m, MonadError String m) => Peer -> m () contactReject = pairingReject @ContactAccepted Proxy finalizeContact :: MonadHead LocalState m => UnifiedIdentity -> m () -finalizeContact identity = updateSharedState_ $ \contacts -> do +finalizeContact identity = updateLocalHead_ $ updateSharedState_ $ \contacts -> do st <- getStorage cdata <- wrappedStore st ContactData { cdPrev = [] |