zulip/zerver
Steve Howell 0f7628280f narrow: Handle spurious emails in pm-with searches.
If cordelia searches on pm-with:iago@zulip.com,cordelia@zulip.com,
we now properly treat that the same way as pm-with:iago@zulip.com.

Before this fix, the query would initially go through the
huddle code path.  The symptom wasn't completely obvious, as
eventually a deeper function would return a recipient id
corresponding to a single PM with @iago@zulip.com, but we would
only get messages where iago was the recipient, and not any
messages where he was the sender to cordelia.

I put the helper function for this in zerver/lib/addressee, which
is somewhat speculative.  Eventually, we'll want pm-with queries
to allow for user ids, and I imagine there will be some shared
logic with other Addressee code in terms of how we handle these
strings.  The way we deal with lists of emails/users for various
endpoints is kind of haphazard in the current code, although
granted it's mostly just repeating the same simple patterns.  It
would be nice for some of this code to converge a bit.  This
affects new messages, typing indicators, search filters, etc.,
and some endpoints have strange legacy stuff like supporting
JSON-encoded lists, so it's not trivial to clean this up.

Tweaked by tabbott to add some additional tests.
2018-10-12 10:18:30 -07:00
..
data_import hipchat import: Handle users without avatars. 2018-10-12 07:03:25 -04:00
lib narrow: Handle spurious emails in pm-with searches. 2018-10-12 10:18:30 -07:00
management management: Add command to scrub a realm of personal data. 2018-10-11 15:30:26 -07:00
migrations notifications: Fix push notifications with multiple realms. 2018-10-10 16:15:52 -07:00
openapi docs: Move LDAP documentation out of plug-and-play section. 2018-09-27 13:38:14 -07:00
templatetags api docs: Move integration-docs-guide to docs/. 2018-10-09 20:28:44 -07:00
tests narrow: Handle spurious emails in pm-with searches. 2018-10-12 10:18:30 -07:00
tornado event_queue: Stop mocking push notifications in most tests. 2018-08-10 13:58:39 -07:00
views narrow: Handle spurious emails in pm-with searches. 2018-10-12 10:18:30 -07:00
webhooks org settings: Rename "Filter settings" to "Linkifiers". 2018-10-09 08:50:45 -07:00
worker refactor: Extract build_bot_request(). 2018-10-11 16:12:07 -07:00
__init__.py
apps.py
context_processors.py portico: Change buttons on /plans to reflect current plan. 2018-09-05 13:44:35 -07:00
decorator.py decorator: Fix error message for accessing deactivated accounts. 2018-08-09 15:58:31 -07:00
filters.py
forms.py password reset: Deduplicate code for reset URL generation. 2018-08-23 12:06:02 -07:00
logging_handlers.py bugdown: Improve exception handler for BugdownRenderingException. 2018-07-26 09:27:55 -07:00
middleware.py urls: Separate endpoint for signup and new realm email confirm. 2018-08-26 22:53:57 -07:00
models.py management: Add command to scrub a realm of personal data. 2018-10-11 15:30:26 -07:00
signals.py emails: Add detection for ChromeOS User-Agents. 2018-09-21 10:41:05 -07:00
static_header.txt