Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

push_notifications: Move zilencer import inside ZILENCER_ENABLED check.

Alex Vandiverc0b557fb2ec5
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py
index fe3d8fa8867..f42224664a2 100644
--- a/zerver/lib/push_notifications.py
+++ b/zerver/lib/push_notifications.py
@@ -37,7 +37,6 @@ from zerver.models import (
get_display_recipient,
get_user_profile_by_id,
)
-from zilencer.models import RemoteZulipServer
if TYPE_CHECKING:
import aioapns
@@ -45,7 +44,7 @@ if TYPE_CHECKING:
logger = logging.getLogger(__name__)
if settings.ZILENCER_ENABLED:
- from zilencer.models import RemotePushDeviceToken
+ from zilencer.models import RemotePushDeviceToken, RemoteZulipServer
DeviceToken = Union[PushDeviceToken, "RemotePushDeviceToken"]