Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: core: Improve consistency while toggling from topic to stream. #948

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Abhirup-99
Copy link
Contributor

Fixes #934.

@zulipbot zulipbot added size: S [Automatic label added by zulipbot] bug Something isn't working labels Mar 14, 2021
@Abhirup-99 Abhirup-99 force-pushed the fix_cycle branch 3 times, most recently from 6bd2dd2 to e3c20e3 Compare March 16, 2021 07:30
@Abhirup-99
Copy link
Contributor Author

@zulipbot add "PR needs review"

@zulipbot zulipbot added the PR needs review PR requires feedback to proceed label Mar 16, 2021
@Abhirup-99 Abhirup-99 changed the title bugfix: core: Improve consistency while toggling from topic to message. bugfix: core: Improve consistency while toggling from topic to stream. Mar 16, 2021
Copy link
Member

@Ezio-Sarthak Ezio-Sarthak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this up! The toggle behavior seems OK now 👍

As you rightly pointed out about the gap in 2 sets of indexed messages, I believe fixing that should fix this too?

I also found another fix locally for the stream toggle bug. Discussion link :)

@Abhirup-99 Abhirup-99 force-pushed the fix_cycle branch 2 times, most recently from 8325475 to 3fd3975 Compare March 19, 2021 12:24
The commit brings consistency while toggling from topic
to streams. The original behaviour was to move to the last
message in the stream, while toggling out. This changes it to
zoom out to the context of the message selected in the stream.
Tests added.
Fixes zulip#934.
@neiljp
Copy link
Collaborator

neiljp commented Apr 19, 2021

@Abhirup-99 I think we should avoid blowing away the message cache if we can - though I appreciate that this does look to be a solution - as we could end up fetching messages multiple times if nothing else. If we did take this approach, we would likely want to isolate the changes in the model in any case, as the change digs into the model from the controller; code like that still exists in ZT, but it's a lot easier to reason about otherwise.

See the topic @Ezio-Sarthak linked for other discussion.

@neiljp neiljp removed the PR needs review PR requires feedback to proceed label Apr 19, 2021
@neiljp neiljp added the further discussion required Discuss this on #zulip-terminal on chat.zulip.org label May 11, 2021
@zulipbot
Copy link
Member

Heads up @Abhirup-99, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the upstream/main branch and resolve your pull request's merge conflicts accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working further discussion required Discuss this on #zulip-terminal on chat.zulip.org has conflicts size: S [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Topic -> Stream zoom-out fails for old topic after viewing recent up-to-date stream
4 participants