From 8773a058bfd8b35cb01c80fa774066fdf69156eb Mon Sep 17 00:00:00 2001 From: JRoberts <8711996+jr-simplex@users.noreply.github.com> Date: Sat, 7 May 2022 21:25:29 +0400 Subject: [PATCH] delete from files; delete from chat_items --- src/Simplex/Chat/Store.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Simplex/Chat/Store.hs b/src/Simplex/Chat/Store.hs index 3da0994e01..3f3cf3e9ff 100644 --- a/src/Simplex/Chat/Store.hs +++ b/src/Simplex/Chat/Store.hs @@ -443,6 +443,10 @@ deleteContact st userId Contact {contactId, localDisplayName} = do ) |] (userId, contactId) + liftIO $ putStrLn "DB.execute db \"DELETE FROM files WHERE user_id = ? AND contact_id = ?\" (userId, contactId)" + DB.execute db "DELETE FROM files WHERE user_id = ? AND contact_id = ?" (userId, contactId) + liftIO $ putStrLn "DB.execute db \"DELETE FROM chat_items WHERE user_id = ? AND contact_id = ?\" (userId, contactId)" + DB.execute db "DELETE FROM chat_items WHERE user_id = ? AND contact_id = ?" (userId, contactId) liftIO $ putStrLn "DB.execute db \"DELETE FROM contacts WHERE user_id = ? AND contact_id = ?\" (userId, contactId)" DB.execute db "DELETE FROM contacts WHERE user_id = ? AND contact_id = ?" (userId, contactId) liftIO $ putStrLn "DB.execute db \"DELETE FROM display_names WHERE user_id = ? AND local_display_name = ?\" (userId, localDisplayName)"