make slow commands asynchronous (#258)

This commit is contained in:
Evgeny Poberezkin
2022-02-02 17:47:27 +00:00
committed by GitHub
parent dafdf66ada
commit 292c334460
2 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ responseToView cmd = \case
where
api = (highlight cmd :)
r = (plain cmd :)
-- this function should be `id` in case of asynchronous command responses
r' = r
-- this function should be `r` for "synchronous" command responses
r' = id
viewChatItem :: ChatInfo c -> ChatItem c d -> [StyledString]
viewChatItem chat (ChatItem cd meta content) = case (chat, cd) of