mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
push_notifications: Clear push notifications on message deletion.
This commit adds support to revoke mobile push notifications for messages when deleted. Fixes #26584. Signed-off-by: Prakhar Pratyush <prakhar@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
8b11e88a91
commit
7260ba689f
@@ -1151,7 +1151,7 @@ class TestDoDeleteMessages(ZulipTestCase):
|
||||
message_ids = [self.send_stream_message(cordelia, "Verona", str(i)) for i in range(10)]
|
||||
messages = Message.objects.filter(id__in=message_ids)
|
||||
|
||||
with self.assert_database_query_count(23):
|
||||
with self.assert_database_query_count(24):
|
||||
do_delete_messages(realm, messages, acting_user=None)
|
||||
self.assertFalse(Message.objects.filter(id__in=message_ids).exists())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user