mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-23 00:18:27 +00:00
cut comments
This commit is contained in:
1 parent
1b6577e7cb
commit
68058feb73
1 file changed
+1
-2
@@ -145,8 +145,7 @@ setAccountUser db sId userId n =
|
||||
accountHeldBy :: DB.Connection -> SeedId -> UserId -> AccountIndex -> IO Bool
|
||||
accountHeldBy db sId userId n = (== Just (Just userId)) <$> accountUser db sId n
|
||||
|
||||
-- | What a scan found: the accounts in use, bound to the profile that ran it because the chain does not say whose they are, and the counter past them.
|
||||
-- The counter is taken from the recorded accounts, not from the scan alone, so it never lands on one another profile already holds, and it only ever rises.
|
||||
-- | The accounts a scan found, bound to the profile that ran it, and the counter raised past every account recorded, not just those found.
|
||||
recordScan :: DB.Connection -> SeedId -> UserId -> [AccountIndex] -> IO ()
|
||||
recordScan db sId userId inUse = do
|
||||
mapM_ insertScanned inUse
|
||||
|
||||
Reference in new issue
Block a user