mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 22:04:56 -04:00
Improved push typing (#11409)
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
This commit is contained in:
parent
35b1900f00
commit
a9481223d1
7 changed files with 210 additions and 36 deletions
|
@ -26,6 +26,7 @@ from synapse.events import EventBase
|
|||
from synapse.logging import opentracing
|
||||
from synapse.metrics.background_process_metrics import run_as_background_process
|
||||
from synapse.push import Pusher, PusherConfig, PusherConfigException
|
||||
from synapse.storage.databases.main.event_push_actions import HttpPushAction
|
||||
|
||||
from . import push_rule_evaluator, push_tools
|
||||
|
||||
|
@ -273,7 +274,7 @@ class HttpPusher(Pusher):
|
|||
)
|
||||
break
|
||||
|
||||
async def _process_one(self, push_action: dict) -> bool:
|
||||
async def _process_one(self, push_action: HttpPushAction) -> bool:
|
||||
if "notify" not in push_action["actions"]:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue