Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed notification title and subtitle; removed body #2027

Merged
merged 13 commits into from
May 26, 2023
Prev Previous commit
Next Next commit
fix string construction
imtoori committed May 26, 2023

Verified

This commit was signed with the committer’s verified signature.
rezkiy37 Michael (Mykhailo) Kravchenko
commit e4cc45d0b9e8c67504d1004ae546cac996d9582d
4 changes: 2 additions & 2 deletions engine/apps/mobile_app/alert_rendering.py
Original file line number Diff line number Diff line change
@@ -29,8 +29,8 @@ def get_push_notification_subtitle(alert_group):

alert_status = f"Status: {status_verbose}, alerts: {alerts_count_str}"

subtitle = f"#{alert_group.inside_organization_number} {alert_title}\n"
subtitle = (f"#{alert_group.inside_organization_number} {alert_title}\n"
+emojize(f"via {alert_group.channel.short_name}", use_aliases=True)
+f"\n{alert_status}"
+f"\n{alert_status}")

return subtitle