mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Fix narrow stream event queues with all event types.
(imported from commit 69c2f6f1be3dd864b5da85104b83235f0dd4df50)
This commit is contained in:
@@ -119,9 +119,7 @@ class ClientDescriptor(object):
|
||||
return False
|
||||
|
||||
def accepts_event(self, event):
|
||||
if self.event_types is None:
|
||||
return True
|
||||
if event["type"] not in self.event_types:
|
||||
if self.event_types is not None and event["type"] not in self.event_types:
|
||||
return False
|
||||
if event["type"] == "message":
|
||||
return self.narrow_filter(event)
|
||||
|
||||
Reference in New Issue
Block a user