mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
make slow commands asynchronous (#258)
This commit is contained in:
committed by
GitHub
parent
dafdf66ada
commit
292c334460
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user