embed: Remove useless 'sender' field.

The variant `update_message` events have this extra sender field not
present in normal update_message events; this field has no purpose, so
we remove it.
This commit is contained in:
Tim Abbott 2020-08-03 17:59:43 -07:00
parent 99a54ba67e
commit 00fd9afad5
2 changed files with 0 additions and 2 deletions

View File

@ -4403,7 +4403,6 @@ def do_update_embedded_data(user_profile: UserProfile,
rendered_content: Optional[str]) -> None: rendered_content: Optional[str]) -> None:
event: Dict[str, Any] = { event: Dict[str, Any] = {
'type': 'update_message', 'type': 'update_message',
'sender': user_profile.email,
'message_id': message.id} 'message_id': message.id}
changed_messages = [message] changed_messages = [message]

View File

@ -761,7 +761,6 @@ check_update_message_embedded = check_events_dict(
("message_id", check_int), ("message_id", check_int),
("message_ids", check_list(check_int)), ("message_ids", check_list(check_int)),
("rendered_content", check_string), ("rendered_content", check_string),
("sender", check_string),
] ]
) )