cli: change active chat after tail command (#2547)

This commit is contained in:
Evgeny Poberezkin
2023-06-04 23:38:25 -07:00
committed by GitHub
parent 0721b24250
commit 6afda28367
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -143,6 +143,12 @@ defaultInlineFilesConfig =
data ActiveTo = ActiveNone | ActiveC ContactName | ActiveG GroupName
deriving (Eq)
chatActiveTo :: ChatName -> ActiveTo
chatActiveTo (ChatName cType name) = case cType of
CTDirect -> ActiveC name
CTGroup -> ActiveG name
_ -> ActiveNone
data ChatDatabase = ChatDatabase {chatStore :: SQLiteStore, agentStore :: SQLiteStore}
data ChatController = ChatController