core: initial api support for items around a given item (#5092)

* core: initial api support for items around a given item

* implementation and tests for local messages

* pass entities down

* unused

* getAllChatItems implementation and tests

* pagination for getting chat and tests

* remove unused import

* group implementation and tests

* refactor

* order by created at for local and direct chats
This commit is contained in:
Diogo
2024-10-25 16:30:16 +01:00
committed by GitHub
parent ea61fd7e2b
commit f738d2731c
7 changed files with 212 additions and 122 deletions
+2 -1
View File
@@ -839,6 +839,7 @@ data ChatPagination
= CPLast Int
| CPAfter ChatItemId Int
| CPBefore ChatItemId Int
| CPAround ChatItemId Int
deriving (Show)
data PaginationByTime
@@ -1010,7 +1011,7 @@ defaultSimpleNetCfg =
smpWebPort = False,
tcpTimeout_ = Nothing,
logTLSErrors = False
}
}
data ContactSubStatus = ContactSubStatus
{ contact :: Contact,