mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-06-19 14:14:06 -04:00
Merge remote-tracking branch 'upstream/release-v1.50'
This commit is contained in:
commit
e9caf56ca0
205 changed files with 4905 additions and 2749 deletions
|
@ -192,7 +192,7 @@ class HttpPusher(Pusher):
|
|||
"http-push",
|
||||
tags={
|
||||
"authenticated_entity": self.user_id,
|
||||
"event_id": push_action["event_id"],
|
||||
"event_id": push_action.event_id,
|
||||
"app_id": self.app_id,
|
||||
"app_display_name": self.app_display_name,
|
||||
},
|
||||
|
@ -202,7 +202,7 @@ class HttpPusher(Pusher):
|
|||
if processed:
|
||||
http_push_processed_counter.inc()
|
||||
self.backoff_delay = HttpPusher.INITIAL_BACKOFF_SEC
|
||||
self.last_stream_ordering = push_action["stream_ordering"]
|
||||
self.last_stream_ordering = push_action.stream_ordering
|
||||
pusher_still_exists = (
|
||||
await self.store.update_pusher_last_stream_ordering_and_success(
|
||||
self.app_id,
|
||||
|
@ -245,7 +245,7 @@ class HttpPusher(Pusher):
|
|||
self.pushkey,
|
||||
)
|
||||
self.backoff_delay = HttpPusher.INITIAL_BACKOFF_SEC
|
||||
self.last_stream_ordering = push_action["stream_ordering"]
|
||||
self.last_stream_ordering = push_action.stream_ordering
|
||||
await self.store.update_pusher_last_stream_ordering(
|
||||
self.app_id,
|
||||
self.pushkey,
|
||||
|
@ -268,17 +268,17 @@ class HttpPusher(Pusher):
|
|||
break
|
||||
|
||||
async def _process_one(self, push_action: HttpPushAction) -> bool:
|
||||
if "notify" not in push_action["actions"]:
|
||||
if "notify" not in push_action.actions:
|
||||
return True
|
||||
|
||||
tweaks = push_rule_evaluator.tweaks_for_actions(push_action["actions"])
|
||||
tweaks = push_rule_evaluator.tweaks_for_actions(push_action.actions)
|
||||
badge = await push_tools.get_badge_count(
|
||||
self.hs.get_datastore(),
|
||||
self.user_id,
|
||||
group_by_room=self._group_unread_count_by_room,
|
||||
)
|
||||
|
||||
event = await self.store.get_event(push_action["event_id"], allow_none=True)
|
||||
event = await self.store.get_event(push_action.event_id, allow_none=True)
|
||||
if event is None:
|
||||
return True # It's been redacted
|
||||
rejected = await self.dispatch_push(event, tweaks, badge)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue