mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
models: Rename receives_online_notifications function.
Prep for later when we will have a similar setting for online email notifications.
This commit is contained in:
committed by
Tim Abbott
parent
e11648f22e
commit
518deb7b9e
@@ -31,7 +31,7 @@ from zerver.models import (
|
||||
get_display_recipient,
|
||||
get_user_profile_by_id,
|
||||
receives_offline_push_notifications,
|
||||
receives_online_notifications,
|
||||
receives_online_push_notifications,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -852,7 +852,7 @@ def handle_push_notification(user_profile_id: int, missed_message: Dict[str, Any
|
||||
user_profile = get_user_profile_by_id(user_profile_id)
|
||||
if not (
|
||||
receives_offline_push_notifications(user_profile)
|
||||
or receives_online_notifications(user_profile)
|
||||
or receives_online_push_notifications(user_profile)
|
||||
):
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user