-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
base: main
Are you sure you want to change the base?
Conversation
6bd2dd2
to
e3c20e3
Compare
@zulipbot add "PR needs review" |
There was a problem hiding this 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 :)
8325475
to
3fd3975
Compare
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.
@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. |
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 |
Fixes #934.