mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-05 16:42:39 +00:00
015d5de364
* core: add custom indexed columns to groups and contacts * directory: use database (TODO search/listing) * triggers to maintain current member count * update simplexmq, fix tests, use summary from GroupInfo * fix all directory tests * remove acceptance fields from group reg * enable all tests * clean up * postgres migrations, fixes * query plans * use function in postgres triggers, improve sqlite query * fix export/import * update schema * prevent admins from promoting groups when approving * update listing every 5 minutes
14 lines
309 B
Haskell
14 lines
309 B
Haskell
module Directory.Search where
|
|
|
|
import Data.Text (Text)
|
|
import Data.Time.Clock (UTCTime)
|
|
import Simplex.Chat.Types
|
|
|
|
data SearchRequest = SearchRequest
|
|
{ searchType :: SearchType,
|
|
searchTime :: UTCTime,
|
|
lastGroup :: GroupId -- cursor for search
|
|
}
|
|
|
|
data SearchType = STAll | STRecent | STSearch Text
|