mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
core: allow deleting user when user record in agent database was deleted (#4851)
This commit is contained in:
@@ -23,7 +23,7 @@ import Simplex.Chat
|
||||
import Simplex.Chat.Controller
|
||||
import Simplex.Chat.Core
|
||||
import Simplex.Chat.Options
|
||||
import Simplex.Messaging.Transport.Server (runTCPServer)
|
||||
import Simplex.Messaging.Transport.Server (runLocalTCPServer)
|
||||
import Simplex.Messaging.Util (raceAny_)
|
||||
import UnliftIO.Exception
|
||||
import UnliftIO.STM
|
||||
@@ -68,7 +68,7 @@ newChatServerClient qSize = do
|
||||
runChatServer :: ChatServerConfig -> ChatController -> IO ()
|
||||
runChatServer ChatServerConfig {chatPort, clientQSize} cc = do
|
||||
started <- newEmptyTMVarIO
|
||||
runTCPServer started chatPort $ \sock -> do
|
||||
runLocalTCPServer started chatPort $ \sock -> do
|
||||
ws <- liftIO $ getConnection sock
|
||||
c <- atomically $ newChatServerClient clientQSize
|
||||
putStrLn "client connected"
|
||||
|
||||
Reference in New Issue
Block a user