mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
get_apns_alert_subtitle: Remove the stale 'user_profile' parameter.
This commit removes the 'user_profile' parameter that wasn't
getting used.
This should have been removed in ce6f6a3.
This commit is contained in:
committed by
Tim Abbott
parent
8230a21163
commit
e2c9b283f3
@@ -842,7 +842,6 @@ def get_apns_alert_title(message: Message) -> str:
|
||||
|
||||
|
||||
def get_apns_alert_subtitle(
|
||||
user_profile: UserProfile,
|
||||
message: Message,
|
||||
trigger: str,
|
||||
mentioned_user_group_name: Optional[str] = None,
|
||||
@@ -923,9 +922,7 @@ def get_message_payload_apns(
|
||||
apns_data = {
|
||||
"alert": {
|
||||
"title": get_apns_alert_title(message),
|
||||
"subtitle": get_apns_alert_subtitle(
|
||||
user_profile, message, trigger, mentioned_user_group_name
|
||||
),
|
||||
"subtitle": get_apns_alert_subtitle(message, trigger, mentioned_user_group_name),
|
||||
"body": content,
|
||||
},
|
||||
"sound": "default",
|
||||
|
||||
Reference in New Issue
Block a user