mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-30 10:04:14 -04:00
Support enabling/disabling pushers (from MSC3881) (#13799)
Partial implementation of MSC3881
This commit is contained in:
parent
6bd8763804
commit
8ae42ab8fa
15 changed files with 294 additions and 71 deletions
|
@ -114,7 +114,7 @@ class EmailPusherTests(HomeserverTestCase):
|
|||
)
|
||||
|
||||
self.pusher = self.get_success(
|
||||
self.hs.get_pusherpool().add_pusher(
|
||||
self.hs.get_pusherpool().add_or_update_pusher(
|
||||
user_id=self.user_id,
|
||||
access_token=self.token_id,
|
||||
kind="email",
|
||||
|
@ -136,7 +136,7 @@ class EmailPusherTests(HomeserverTestCase):
|
|||
"""
|
||||
with self.assertRaises(SynapseError) as cm:
|
||||
self.get_success_or_raise(
|
||||
self.hs.get_pusherpool().add_pusher(
|
||||
self.hs.get_pusherpool().add_or_update_pusher(
|
||||
user_id=self.user_id,
|
||||
access_token=self.token_id,
|
||||
kind="email",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue