mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +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
@@ -642,6 +642,13 @@ class UserMessage(AbstractUserMessage):
|
||||
),
|
||||
name="zerver_usermessage_active_mobile_push_notification_id",
|
||||
),
|
||||
models.Index(
|
||||
"message",
|
||||
condition=Q(
|
||||
flags__andnz=AbstractUserMessage.flags.active_mobile_push_notification.mask
|
||||
),
|
||||
name="zerver_usermessage_message_active_mobile_push_notification_idx",
|
||||
),
|
||||
]
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user