mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 00:02:28 +00:00
core: process ERR response to async command (#1061)
This commit is contained in:
1 parent
d5b9f4014e
commit
e8c14896aa
5 files changed
+39
-13
No files matched your search
@@ -179,6 +179,7 @@ module Simplex.Chat.Store
|
||||
getCalls,
|
||||
createCommand,
|
||||
setCommandConnId,
|
||||
deleteCommand,
|
||||
updateCommandStatus,
|
||||
getCommandDataByCorrId,
|
||||
setConnConnReqInv,
|
||||
@@ -3919,6 +3920,10 @@ setCommandConnId db User {userId} cmdId connId = do
|
||||
|]
|
||||
(connId, updatedAt, userId, cmdId)
|
||||
|
||||
deleteCommand :: DB.Connection -> User -> CommandId -> IO ()
|
||||
deleteCommand db User {userId} cmdId =
|
||||
DB.execute db "DELETE FROM commands WHERE user_id = ? AND command_id = ?" (userId, cmdId)
|
||||
|
||||
updateCommandStatus :: DB.Connection -> User -> CommandId -> CommandStatus -> IO ()
|
||||
updateCommandStatus db User {userId} cmdId status = do
|
||||
updatedAt <- getCurrentTime
|
||||
|
||||
Reference in new issue
Block a user