core: fix chatInitKey to pass database key to agent store (#1010)

This commit is contained in:
Evgeny Poberezkin
2022-09-02 20:20:43 +01:00
committed by GitHub
parent 2b5e3a9459
commit 7999e88554
+1 -1
View File
@@ -150,7 +150,7 @@ chatInitKey dbFilePrefix dbKey = do
let f = chatStoreFile dbFilePrefix
chatStore <- createChatStore f dbKey (yesToMigrations (defaultMobileConfig :: ChatConfig))
user_ <- getActiveUser_ chatStore
newChatController chatStore user_ defaultMobileConfig mobileChatOpts {dbFilePrefix} Nothing
newChatController chatStore user_ defaultMobileConfig mobileChatOpts {dbFilePrefix, dbKey} Nothing
chatSendCmd :: ChatController -> String -> IO JSONString
chatSendCmd cc s = LB.unpack . J.encode . APIResponse Nothing <$> runReaderT (execChatCommand $ B.pack s) cc