mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
push_notifications: Move zilencer import inside ZILENCER_ENABLED check.
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user