core: set files folder without user (to allow archive import) (#748)

This commit is contained in:
Evgeny Poberezkin
2022-06-23 21:20:56 +01:00
committed by GitHub
parent 8d93f228b3
commit 4d9e446489

View File

@@ -207,7 +207,7 @@ processChatCommand = \case
pure CRChatStopped
APISetAppPhase phase -> withAgent (`setAgentPhase` phase) $> CRCmdOk
ResubscribeAllConnections -> withUser (subscribeUserConnections resubscribeConnection) $> CRCmdOk
SetFilesFolder filesFolder' -> withUser $ \_ -> do
SetFilesFolder filesFolder' -> do
createDirectoryIfMissing True filesFolder'
ff <- asks filesFolder
atomically . writeTVar ff $ Just filesFolder'