mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
This checks if push_notification_enabled() is set to false in handle_push_notification and adds an early return statement. This is a significant performance optimization for our unit tests because the push notifications code path does a number of database queries, and this migration means we don't end up doing those queries the hundreds of times we send PMs or mentions in our tests where we're not trying to test the push notifications functionality. This should also have a small message sending scalability improvement for any Zulip servers without push notifications enabled. Tweaked by tabbott to fix a few small issues. Fixes #10895.
30 KiB
30 KiB