feat/push-notifications #34

Merged
retoor merged 16 commits from :feat/push-notifications into main 2025-06-06 11:25:09 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 744d0ace84 - Show all commits

View File

@ -139,7 +139,7 @@ class Notifications:
algorithm="ES256",
)
def create_encrypted_payload(self, endpoint: str, auth: str, p256dh: str, payload: str):
def create_notification_info_with_payload(self, endpoint: str, auth: str, p256dh: str, payload: str):
message_private_key = ec.generate_private_key(ec.SECP256R1(), default_backend())
message_public_key_bytes = message_private_key.public_key().public_bytes(

View File

@ -84,7 +84,7 @@ class PushView(BaseFormView):
"url": "/web.html",
}
notification_info = notifications.create_encrypted_payload(
notification_info = notifications.create_notification_info_with_payload(
body['endpoint'],
body["keys"]["auth"],
body["keys"]["p256dh"],