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/Message.hs | |
parent | 5afb63aced2a6c5ec2fd3604f1b898d803686d8d (diff) |
Shared state helpers usable with other local head updates
Diffstat (limited to 'src/Message.hs')
-rw-r--r-- | src/Message.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Message.hs b/src/Message.hs index a97e52f..ba45518 100644 --- a/src/Message.hs +++ b/src/Message.hs @@ -155,7 +155,7 @@ sendDirectMessage h peer text = do self = headLocalIdentity h powner = finalOwner pid - smsg <- flip runReaderT h $ updateSharedState $ \(DirectMessageThreads prev _) -> liftIO $ do + smsg <- flip runReaderT h $ updateLocalHead $ updateSharedState $ \(DirectMessageThreads prev _) -> liftIO $ do let sent = findMsgProperty powner msSent prev received = findMsgProperty powner msReceived prev |