forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fix: Respect include_history for certain queries.
For certain queries where both include_history and use_first_unread_anchor are set to True, we were excluding historical rows. Now we only use the use_first_unread_anchor flag to filter rows that we use to find the anchor, without having it filter the actual search results. The bug went unreported for a long time, because it only affected mobile users who had newly subscribed to streams. Note that we make a small change to the test called test_use_first_unread_anchor_with_muted_topics, which has a very scary comment about being "arcane" and "be absolutely sure you know what you're doing." I think it's fine. Also, the new test code would fail before this fix, so it should help prevent future regressions. Fixes zulip#8958
- Loading branch information
Steve Howell
committed
Apr 5, 2018
1 parent
b64117d
commit 3684441
Showing
2 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters