diff --git a/src/snek/system/notification.py b/src/snek/system/notification.py index 451e43a..ad578d6 100644 --- a/src/snek/system/notification.py +++ b/src/snek/system/notification.py @@ -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( diff --git a/src/snek/view/push.py b/src/snek/view/push.py index 643e143..036cf85 100644 --- a/src/snek/view/push.py +++ b/src/snek/view/push.py @@ -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"],