mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-24 15:00:29 -04:00
Pass the requester during event serialization. (#15174)
This allows Synapse to properly include the transaction ID in the unsigned data of events.
This commit is contained in:
parent
05e0a4089a
commit
41f127e068
12 changed files with 151 additions and 75 deletions
|
@ -72,6 +72,12 @@ class NotificationsServlet(RestServlet):
|
|||
|
||||
next_token = None
|
||||
|
||||
serialize_options = SerializeEventConfig(
|
||||
event_format=format_event_for_client_v2_without_room_id,
|
||||
requester=requester,
|
||||
)
|
||||
now = self.clock.time_msec()
|
||||
|
||||
for pa in push_actions:
|
||||
returned_pa = {
|
||||
"room_id": pa.room_id,
|
||||
|
@ -81,10 +87,8 @@ class NotificationsServlet(RestServlet):
|
|||
"event": (
|
||||
self._event_serializer.serialize_event(
|
||||
notif_events[pa.event_id],
|
||||
self.clock.time_msec(),
|
||||
config=SerializeEventConfig(
|
||||
event_format=format_event_for_client_v2_without_room_id
|
||||
),
|
||||
now,
|
||||
config=serialize_options,
|
||||
)
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue