terminal: command to show last N items in a chat (#582)

This commit is contained in:
Evgeny Poberezkin
2022-04-28 07:26:43 +01:00
committed by GitHub
parent c48a516586
commit d9572cef86
4 changed files with 23 additions and 0 deletions
+1
View File
@@ -50,6 +50,7 @@ responseToView testView = \case
CRApiParsedMarkdown ft -> [plain . bshow $ J.encode ft]
CRUserSMPServers smpServers -> viewSMPServers smpServers testView
CRNewChatItem (AChatItem _ _ chat item) -> viewChatItem chat item
CRLastMessages chatItems -> concatMap (\(AChatItem _ _ chat item) -> viewChatItem chat item) chatItems
CRChatItemStatusUpdated _ -> []
CRChatItemUpdated (AChatItem _ _ chat item) -> viewItemUpdate chat item
CRChatItemDeleted (AChatItem _ _ chat deletedItem) (AChatItem _ _ _ toItem) -> viewItemDelete chat deletedItem toItem