mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
notifications: Remove unused fields in queue events.
* `stream_name`: This field is actually redundant. The email/push notifications handlers don't use that field from the dict, and they anyways query for the message, so we're safe in deleting this field, even if in the future we end up needing the stream name. * `timestamp`: This is totally unused by the email/push notification handlers, and aren't sent to push clients either. * `type` is used only for the push notifications handler, since only push notifications can be revoked, so we move them to only run there.
This commit is contained in:
committed by
Tim Abbott
parent
76dc504f7e
commit
bf15c0235a
@@ -1363,7 +1363,6 @@ Output:
|
||||
message_id=message_id,
|
||||
acting_user_id=acting_user_id,
|
||||
private_message=kwargs.get("private_message", False),
|
||||
stream_name=kwargs.get("stream_name", None),
|
||||
mentioned_user_group_id=kwargs.get("mentioned_user_group_id", None),
|
||||
idle=kwargs.get("idle", True),
|
||||
already_notified=kwargs.get(
|
||||
|
||||
Reference in New Issue
Block a user