Michael Telatynski
2e73647a85
Fix tests by updating private field names and spies
2021-06-17 15:18:52 +01:00
Travis Ralston
5b2dacd99e
Adapt for js-sdk MatrixClient conversion to TS
...
For https://github.com/matrix-org/matrix-js-sdk/pull/1718
2021-06-01 21:36:28 -06:00
Michael Telatynski
9789f8cf94
Spec compliance, /search doesn't have to return results
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-10-19 12:46:55 +01:00
Damir Jelić
a0934329fe
Searching: Restore the encryption state for the paginated results.
2020-06-10 15:41:55 +02:00
Damir Jelić
0e1e949c49
Searching: Refactor out the e2ee status restoring logic.
2020-06-10 14:25:30 +02:00
Damir Jelić
eaca8310d3
Merge branch 'develop' into poljar/seshat-search-pagination
2020-06-10 13:34:09 +02:00
Damir Jelić
f70ada4d6d
Searching: Delete all the fields that we use to get back event verification.
2020-06-10 12:58:08 +02:00
Damir Jelić
398655f1a9
Searching: Remove some redundant undefined function arguments.
2020-06-10 11:45:32 +02:00
Damir Jelić
67cad2807b
Searching: Better wording for what's going on in combineEvents().
2020-06-10 10:44:38 +02:00
Damir Jelić
4c361bfeb7
Searching: Explain why _query and the server next batch stored as it is.
2020-06-10 10:34:47 +02:00
Damir Jelić
daef8f329b
Searching: Explain what the integer lists in the combineEvents docs mean.
2020-06-10 10:34:11 +02:00
Damir Jelić
632f54d126
Searching: Split out the search methods.
...
This splits out the search methods out into ones that process the search
result and ones that do not instead of toggling the return format using
a boolean.
2020-06-10 10:09:16 +02:00
Damir Jelić
5c42294336
EventIndex: Store and restore the encryption info for encrypted events.
2020-06-09 15:26:34 +02:00
Damir Jelić
5dfe5ac135
Searching: More docs and a bit of simplification.
2020-06-04 17:06:59 +02:00
Damir Jelić
bf13032d5b
Searching: Fix a lint issue and expand some docs.
2020-06-04 17:06:58 +02:00
Damir Jelić
94d4aa17ee
Searching: Remove some debug logs.
2020-06-04 17:06:58 +02:00
Damir Jelić
46fd36568a
Searching: Always set the limit when searching.
...
The spec doesn't mention any default limit so different homeservers
might use different defaults, since we don't want Riot to behave
differently depending on the homeserver bite the bullet of sending an
additional 10 or so bytes when searching.
2020-06-04 17:06:58 +02:00
Damir Jelić
96ca47381c
Searching: Add more docs explaining what's going on in the pagination.
2020-06-04 17:06:58 +02:00
Damir Jelić
df06594314
Searching: Refactor out some code that combines the search results.
2020-06-04 17:06:58 +02:00
Damir Jelić
c6462e11ec
Searching: Fix some lint issues.
2020-06-04 17:06:58 +02:00
Damir Jelić
28f7d23bfc
Searching: Correctly order the combined search results.
2020-06-04 17:06:58 +02:00
Damir Jelić
c2e0e10553
Searching: Split out more logic that combines the events.
2020-06-04 17:06:58 +02:00
Damir Jelić
b6198e0ab9
Searching: Combine the events before letting the client process them.
2020-06-04 17:06:58 +02:00
Damir Jelić
c1ef193e3a
Searching: Add initial pagination for combined searches.
2020-06-04 17:06:58 +02:00
Damir Jelić
e94f3422df
Searching: Add support to paginate Seshat search results.
2020-06-04 17:06:58 +02:00
Damir Jelić
759f71cb53
Searching: Return an empty result if the search term is an empty string.
...
This mimics the behaviour we get from synapse as, this fixes
https://github.com/vector-im/riot-web/issues/12715 .
2020-03-20 11:38:43 +01:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Damir Jelić
e9df973c82
EventIndex: Move the event indexing files into a separate folder.
2019-11-19 14:05:00 +01:00
Damir Jelić
2bb331cdf0
Searching: Fix a typo.
2019-11-18 10:58:57 +01:00
Damir Jelić
0e3a0008df
Searching: Remove the func suffix from our search functions.
2019-11-18 10:58:54 +01:00
Damir Jelić
a4ad8151f8
Searching: Use the short form to build the search arguments object.
2019-11-18 10:58:53 +01:00
Damir Jelić
b4a6123295
Searching: Move a comment to the correct place.
2019-11-18 10:58:50 +01:00
Damir Jelić
ab93745460
Fix the copyright headers from New Vector to The Matrix Foundation.
2019-11-18 10:58:36 +01:00
Damir Jelić
80b28004e1
Searching: Define the room id in the const object.
2019-11-13 11:02:54 +01:00
Damir Jelić
1df28c7526
Fix some lint errors.
2019-11-13 10:30:38 +01:00
Damir Jelić
1cc64f2426
Searching: Move the small helper functions out of the eventIndexSearch function.
2019-11-13 10:10:35 +01:00
Damir Jelić
e296fd05c0
RoomView: Move the search logic into a separate module.
2019-11-12 15:39:26 +01:00