mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-08 14:12:34 -04:00
Merge remote-tracking branch 'upstream/release-v1.31.0'
This commit is contained in:
commit
7def4428cf
172 changed files with 2588 additions and 787 deletions
|
@ -31,7 +31,7 @@ from synapse.push import Pusher, PusherConfig, PusherConfigException
|
|||
from . import push_rule_evaluator, push_tools
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from synapse.app.homeserver import HomeServer
|
||||
from synapse.server import HomeServer
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -283,7 +283,7 @@ class HttpPusher(Pusher):
|
|||
if rejected is False:
|
||||
return False
|
||||
|
||||
if isinstance(rejected, list) or isinstance(rejected, tuple):
|
||||
if isinstance(rejected, (list, tuple)):
|
||||
for pk in rejected:
|
||||
if pk != self.pushkey:
|
||||
# for sanity, we only remove the pushkey if it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue