mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
do_update_message: Remove sender field from update_message events.
This field wasn't accessed by any clients and was a less robust version of the user_id field. Any client hoping to be interested in who did message edits should be able to handle working with user IDs rather than email addresses.
This commit is contained in:
@@ -4496,9 +4496,6 @@ def do_update_message(user_profile: UserProfile, message: Message, topic_name: O
|
||||
message.last_edit_time = timestamp
|
||||
|
||||
event = {'type': 'update_message',
|
||||
# TODO: We probably want to remove the 'sender' field
|
||||
# after confirming it isn't used by any consumers.
|
||||
'sender': user_profile.email,
|
||||
'user_id': user_profile.id,
|
||||
'edit_timestamp': datetime_to_timestamp(timestamp),
|
||||
'message_id': message.id} # type: Dict[str, Any]
|
||||
|
||||
Reference in New Issue
Block a user