mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-24 21:03:32 -05:00
Include a simple message in email notifications that include encrypted content (#8545)
This commit is contained in:
parent
85c56445fb
commit
c356b4bf42
9 changed files with 107 additions and 75 deletions
|
|
@ -158,8 +158,21 @@ class EmailPusherTests(HomeserverTestCase):
|
|||
# We should get emailed about those messages
|
||||
self._check_for_mail()
|
||||
|
||||
def test_encrypted_message(self):
|
||||
room = self.helper.create_room_as(self.user_id, tok=self.access_token)
|
||||
self.helper.invite(
|
||||
room=room, src=self.user_id, tok=self.access_token, targ=self.others[0].id
|
||||
)
|
||||
self.helper.join(room=room, user=self.others[0].id, tok=self.others[0].token)
|
||||
|
||||
# The other user sends some messages
|
||||
self.helper.send_event(room, "m.room.encrypted", {}, tok=self.others[0].token)
|
||||
|
||||
# We should get emailed about that message
|
||||
self._check_for_mail()
|
||||
|
||||
def _check_for_mail(self):
|
||||
"Check that the user receives an email notification"
|
||||
"""Check that the user receives an email notification"""
|
||||
|
||||
# Get the stream ordering before it gets sent
|
||||
pushers = self.get_success(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue