enable async commands (#290)

* enable async

* fix async command error response

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
Efim Poberezkin
2022-02-11 12:03:34 +04:00
committed by GitHub
parent 98fc6c6adf
commit 92409820fb
2 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -122,8 +122,8 @@ responseToView cmd testView = \case
where
r = (plain cmd :)
-- this function should be `r` for "synchronous", `id` for "asynchronous" command responses
-- r' = id
r' = r
-- r' = r
r' = id
testViewChats :: [AChat] -> [StyledString]
testViewChats chats = [sShow $ map toChatView chats]
where