mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 23:46:41 +00:00
fixup! directory: send the number of matches left and the page size in search responses
This commit is contained in:
1 parent
dfdfa0383b
commit
f2be52dbd1
1 file changed
-1
@@ -787,7 +787,6 @@ searchDirectory u dsLink text cursor_ = (\(es, c, _, _) -> (es, c)) <$> searchDi
|
||||
searchNames :: HasCallStack => TestCC -> String -> String -> Maybe J.Value -> IO ([Text], Maybe J.Value)
|
||||
searchNames u dsLink text cursor_ = first (map entryName) <$> searchDirectory u dsLink text cursor_
|
||||
|
||||
-- the page's names and cursor, then its moreCount and pageSize
|
||||
searchNamesCounts :: TestCC -> String -> String -> Maybe J.Value -> IO ([Text], Maybe J.Value, Int, Int)
|
||||
searchNamesCounts u dsLink text cursor_ = (\(es, c, m, s) -> (map entryName es, c, m, s)) <$> searchDirectoryCounts u dsLink text cursor_
|
||||
|
||||
|
||||
Reference in new issue
Block a user