Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

push_notification: Remove unused parameter in `get_apns_alert_subtitle`.

Prakhar Pratyush9a0142201d15
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index e438aa66c44..9cf02c459a0 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -1082,7 +1082,6 @@ def get_apns_alert_title(
def get_apns_alert_subtitle(
message: Message,
trigger: str,
- user_profile: UserProfile,
mentioned_user_group_name: str | None = None,
can_access_sender: bool = True,
) -> str:
@@ -1179,7 +1178,7 @@ def get_message_payload_apns(
"alert": {
"title": alert_title,
"subtitle": get_apns_alert_subtitle(
- message, trigger, user_profile, mentioned_user_group_name, can_access_sender
+ message, trigger, mentioned_user_group_name, can_access_sender
),
"body": content,
},