mirror of https://github.com/zulip/zulip.git
47bcedbc1b
Before this change, server searches for both `is:mentioned` and `is:alerted` would return all messages where the user is specifically mentioned (but not at-all mentions). Now we follow the JS semantics: is:mentioned -- all mentions, including wildcards is:alerted -- has an alert word Here is one relevant JS snippet: } else if (operand === 'mentioned') { return message.mentioned; } else if (operand === 'alerted') { return message.alerted; And here you see that `mentioned` is OR'ed over both mention flags: message.mentioned = convert_flag('mentioned') || convert_flag('wildcard_mentioned'); The `alerted` flag on the JS side is a simple mapping: message.alerted = convert_flag('has_alert_word'); Fixes #5020 |
||
---|---|---|
.. | ||
fixtures | ||
lib | ||
management | ||
migrations | ||
templatetags | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py | ||
static_header.txt | ||
storage.py |