mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-21 16:24:14 +01:00
Merge pull request #447 from matrix-org/rav/fix_search_pagination
Fix 500 error when back-paginating search results
This commit is contained in:
commit
8b9f471d27
1 changed files with 4 additions and 2 deletions
|
@ -286,8 +286,10 @@ class SearchStore(BackgroundUpdateStore):
|
||||||
"(%s)" % (" OR ".join(local_clauses),)
|
"(%s)" % (" OR ".join(local_clauses),)
|
||||||
)
|
)
|
||||||
|
|
||||||
count_args = args
|
# take copies of the current args and clauses lists, before adding
|
||||||
count_clauses = clauses
|
# pagination clauses to main query.
|
||||||
|
count_args = list(args)
|
||||||
|
count_clauses = list(clauses)
|
||||||
|
|
||||||
if pagination_token:
|
if pagination_token:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue