mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-06 20:07:56 -05:00
Merge pull request #1080 from matrix-org/dbkr/fix_notifications_api_with_from
Fix /notifications API when used with `from` param
This commit is contained in:
commit
c3276aef25
@ -342,7 +342,7 @@ class EventPushActionsStore(SQLBaseStore):
|
|||||||
def f(txn):
|
def f(txn):
|
||||||
before_clause = ""
|
before_clause = ""
|
||||||
if before:
|
if before:
|
||||||
before_clause = "AND stream_ordering < ?"
|
before_clause = "AND epa.stream_ordering < ?"
|
||||||
args = [user_id, before, limit]
|
args = [user_id, before, limit]
|
||||||
else:
|
else:
|
||||||
args = [user_id, limit]
|
args = [user_id, limit]
|
||||||
|
Loading…
Reference in New Issue
Block a user