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_notifications: Remove redundant `user_profile` assignment.

Hashir Sarwar31b6867360a4
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index 672932d4abf..dcd97bd42f3 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -706,7 +706,6 @@ def handle_push_notification(user_profile_id: int, missed_message: Dict[str, Any
receives_online_notifications(user_profile)):
return
- user_profile = get_user_profile_by_id(user_profile_id)
try:
(message, user_message) = access_message(user_profile, missed_message['message_id'])
except JsonableError: