getGroupChat, getGroupChatPreviews_ (#233)

This commit is contained in:
Efim Poberezkin
2022-01-29 16:06:08 +04:00
committed by GitHub
parent 7c36ee7955
commit d97a8c1934
11 changed files with 199 additions and 294 deletions

View File

@@ -127,7 +127,7 @@ processChatCommand user@User {userId, profile} = \case
APIGetChats -> CRApiChats <$> withStore (`getChatPreviews` user)
APIGetChat cType cId -> case cType of
CTDirect -> CRApiDirectChat <$> withStore (\st -> getDirectChat st user cId)
CTGroup -> pure $ CRChatError ChatErrorNotImplemented
CTGroup -> CRApiGroupChat <$> withStore (\st -> getGroupChat st user cId)
APIGetChatItems _count -> pure $ CRChatError ChatErrorNotImplemented
ChatHelp section -> pure $ CRChatHelp section
Welcome -> pure $ CRWelcome user