diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-08-05 20:18:49 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-08-05 20:18:49 +0200 |
commit | fef17af2437a8584d0435c94d85b9619b5264219 (patch) | |
tree | 31f4e63f69c5660544560be9f3c45a5635ad1824 /src/Erebos/Chatroom.hs | |
parent | 102acebc7c09af60851344ea64b4df5b6b6a9807 (diff) |
Use MonadStorage for storeSetAdd
Changelog: API: `Set.storeSetAdd` uses `MonadStorage` instead explicit `Storage` parameter
Diffstat (limited to 'src/Erebos/Chatroom.hs')
-rw-r--r-- | src/Erebos/Chatroom.hs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Erebos/Chatroom.hs b/src/Erebos/Chatroom.hs index 579d530..f9bf545 100644 --- a/src/Erebos/Chatroom.hs +++ b/src/Erebos/Chatroom.hs @@ -295,8 +295,7 @@ createChatroom rdName rdDescription = do } updateLocalState $ updateSharedState $ \rooms -> do - st <- getStorage - (, cstate) <$> storeSetAdd st cstate rooms + (, cstate) <$> storeSetAdd cstate rooms findAndUpdateChatroomState :: (MonadStorage m, MonadHead LocalState m) @@ -310,8 +309,7 @@ findAndUpdateChatroomState f = do upd <- act if roomStateData orig /= roomStateData upd then do - st <- getStorage - roomSet' <- storeSetAdd st upd roomSet + roomSet' <- storeSetAdd upd roomSet return (roomSet', Just upd) else do return (roomSet, Just upd) |