Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
push_notifications: Add the missing compatibility code.
Prakhar Pratyush3675a44471d9
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.pyindex 4f0c3589b43..2c818dd02d9 100644--- a/zerver/lib/push_notifications.py+++ b/zerver/lib/push_notifications.py@@ -1123,6 +1123,19 @@ def handle_push_notification(user_profile_id: int, missed_message: Dict[str, Anyreturntrigger = missed_message["trigger"]++ # TODO/compatibility: Translation code for the rename of+ # `wildcard_mentioned` to `stream_wildcard_mentioned`.+ # Remove this when one can no longer directly upgrade from 7.x to main.+ if trigger == "wildcard_mentioned":+ trigger = NotificationTriggers.STREAM_WILDCARD_MENTION # nocoverage++ # TODO/compatibility: Translation code for the rename of+ # `followed_topic_wildcard_mentioned` to `stream_wildcard_mentioned_in_followed_topic`.+ # Remove this when one can no longer directly upgrade from 7.x to main.+ if trigger == "followed_topic_wildcard_mentioned":+ trigger = NotificationTriggers.STREAM_WILDCARD_MENTION_IN_FOLLOWED_TOPIC # nocoverage+mentioned_user_group_name = None# mentioned_user_group_id will be None if the user is personally mentioned# regardless whether they are a member of the mentioned user group in the