mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-29 17:39:12 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user