make slow commands asynchronous (#258)

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2022-02-02 21:47:27 +04:00
1 parent dafdf66ada
commit 292c334460
2 files changed
+15 -13

No files matched your search

+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