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.

mypy: Fix user_id typo in maybe_enqueue_notifications_for_message_update.

Tim Abbottd84d61f71894
diff --git a/zerver/tornado/event_queue.py b/zerver/tornado/event_queue.py
index b8a2ad41b80..65fa6fc8e8e 100644
--- a/zerver/tornado/event_queue.py
+++ b/zerver/tornado/event_queue.py
@@ -42,7 +42,6 @@ from zerver.lib.queue import queue_json_publish, retry_event
from zerver.lib.request import JsonableError
from zerver.lib.utils import statsd
from zerver.middleware import async_request_timer_restart
-from zerver.models import UserProfile
from zerver.tornado.autoreload import add_reload_hook
from zerver.tornado.descriptors import clear_descriptor_by_handler_id, set_descriptor_by_handler_id
from zerver.tornado.exceptions import BadEventQueueIdError
@@ -1158,7 +1157,7 @@ def process_message_update_event(
def maybe_enqueue_notifications_for_message_update(
- user_profile_id: UserProfile,
+ user_profile_id: int,
message_id: int,
private_message: bool,
mentioned: bool,