events: Send delete_message event to user who deleted the message.

Fixes #29826.

Co-authored-by: Mukul Goyal <goyal.mukul7689@gmail.com>
Co-authored-by: Aman Agrawal <amanagr@zulip.com>
This commit is contained in:
Vector73
2024-07-17 08:41:28 +05:30
committed by Tim Abbott
parent 34d3b2302e
commit 7a80fcf042
14 changed files with 67 additions and 33 deletions

View File

@@ -496,7 +496,7 @@ class PreviewTestCase(ZulipTestCase):
event = patched.call_args[0][1]
msg = Message.objects.select_related("sender").get(id=msg_id)
do_delete_messages(msg.realm, [msg])
do_delete_messages(msg.realm, [msg], acting_user=None)
# We do still fetch the URL, as we don't want to incur the
# cost of locking the row while we do the HTTP fetches.