notification_data: Rename sender_id -> acting_user_id.

This better shows the situation for message edits, where we use the same
class.
This commit is contained in:
Abhijeet Prasad Bodas
2021-06-25 17:28:53 +05:30
committed by Tim Abbott
parent 87fc2bbe50
commit 733e0ae75e
6 changed files with 123 additions and 87 deletions

View File

@@ -1339,7 +1339,7 @@ Output:
)
def get_maybe_enqueue_notifications_parameters(
self, *, message_id: int, user_id: int, sender_id: int, **kwargs: Any
self, *, message_id: int, user_id: int, acting_user_id: int, **kwargs: Any
) -> Dict[str, Any]:
"""
Returns a dictionary with the passed parameters, after filling up the
@@ -1352,7 +1352,7 @@ Output:
return dict(
user_data=user_notifications_data,
message_id=message_id,
sender_id=sender_id,
acting_user_id=acting_user_id,
private_message=kwargs.get("private_message", False),
stream_name=kwargs.get("stream_name", None),
idle=kwargs.get("idle", True),