We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6315653 commit 7c79724Copy full SHA for 7c79724
zulipterminal/model.py
@@ -671,8 +671,10 @@ def notify_user(self, message: Message) -> str:
671
]
672
target = ', '.join(extra_targets)
673
recipient = ' (to {})'.format(target)
674
- elif {'mentioned', 'wildcard_mentioned'}.intersection(
675
- set(message['flags'])) and message['type'] == 'stream':
+ elif message['type'] == 'stream' and (
+ {'mentioned', 'wildcard_mentioned'}.intersection(set(message['flags']))
676
+ or self.stream_dict[message['stream_id']]['desktop_notifications']
677
+ ):
678
recipient = ' (to {} -> {})'.format(message['display_recipient'],
679
message['subject'])
680
0 commit comments