mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:36:02 -04:00
Include the ts the notif was received at
This commit is contained in:
parent
b791a530da
commit
37b7e84620
2 changed files with 8 additions and 5 deletions
|
@ -201,11 +201,13 @@ class EventPushActionsStore(SQLBaseStore):
|
|||
else:
|
||||
args = [user_id, limit]
|
||||
sql = (
|
||||
"SELECT event_id, room_id, stream_ordering, topological_ordering,"
|
||||
" actions, profile_tag"
|
||||
" FROM event_push_actions"
|
||||
" WHERE user_id = ? %s"
|
||||
" ORDER BY stream_ordering DESC"
|
||||
"SELECT epa.event_id, epa.room_id,"
|
||||
" epa.stream_ordering, epa.topological_ordering,"
|
||||
" epa.actions, epa.profile_tag, e.received_ts"
|
||||
" FROM event_push_actions epa, events e"
|
||||
" WHERE epa.room_id = e.room_id AND epa.event_id = e.event_id"
|
||||
" AND epa.user_id = ? %s"
|
||||
" ORDER BY epa.stream_ordering DESC"
|
||||
" LIMIT ?"
|
||||
% (before_clause,)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue