core: fix report count when loading chat (#5505)

* core: fix report count when loading chat

* remove "deleted" parameter from api
This commit is contained in:
Evgeny
2025-01-10 19:41:01 +00:00
committed by GitHub
parent 5fcf5c2cf8
commit c8c6a832dd
9 changed files with 36 additions and 78 deletions
+1 -7
View File
@@ -301,7 +301,7 @@ data ChatCommand
| APIGetAppSettings (Maybe AppSettings)
| APIGetChatTags UserId
| APIGetChats {userId :: UserId, pendingConnections :: Bool, pagination :: PaginationByTime, query :: ChatListQuery}
| APIGetChat ChatRef (Maybe ContentFilter) ChatPagination (Maybe String)
| APIGetChat ChatRef (Maybe MsgContentTag) ChatPagination (Maybe String)
| APIGetChatItems ChatPagination (Maybe String)
| APIGetChatItemInfo ChatRef ChatItemId
| APISendMessages {chatRef :: ChatRef, liveMessage :: Bool, ttl :: Maybe Int, composedMessages :: NonEmpty ComposedMessage}
@@ -878,12 +878,6 @@ logResponseToFile = \case
CRMessageError {} -> True
_ -> False
data ContentFilter = ContentFilter
{ mcTag :: MsgContentTag,
deleted :: Maybe Bool
}
deriving (Show)
data ChatPagination
= CPLast Int
| CPAfter ChatItemId Int