Skip to content

Revert "webview html: Get stream name from stream, rather than message" #5207

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

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Jan 28, 2022

This reverts most of commit 9d05bba (from #5183).
We leave the test changes in place, because those just set up better
fixture data.

It's possible for the message list to show messages in streams that
we don't actually have data for: in particular, streams that our user
was previously a member of (and received some messages there while
they were), but no longer is, and can't see (because it's private and
they're not an admin, or because they're a guest.) As a result, we
can't simply get the stream name here from our streams data.

There are a couple of ways we could go to fix the issue that commit
originally fixed, so that recipient headers get updated when a stream
is renamed; I'll discuss those in or linked from the issue #5206.
In the meantime, revert, because a crash when you've left the stream
is a lot worse than an out-of-date name when it's been renamed.

Fixes: #5206

This reverts most of commit 9d05bba.
We leave the test changes in place, because those just set up better
fixture data.

It's possible for the message list to show messages in streams that
we don't actually have data for: in particular, streams that our user
was previously a member of (and received some messages there while
they were), but no longer is, and can't see (because it's private and
they're not an admin, or because they're a guest.)  As a result, we
can't simply get the stream name here from our streams data.

There are a couple of ways we could go to fix the issue that commit
originally fixed, so that recipient headers get updated when a stream
is renamed; I'll discuss those in or linked from the issue zulip#5206.
In the meantime, revert, because a crash when you've left the stream
is a lot worse than an out-of-date name when it's been renamed.

Fixes: zulip#5206
@chrisbobbe chrisbobbe merged commit 57c914a into zulip:main Jan 28, 2022
@chrisbobbe
Copy link
Contributor

Ah, well. Merged, thanks! And thanks for filing #5208.

@gnprice gnprice deleted the pr-stream-name branch January 28, 2022 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api migrations P1 high-priority severe: crash The app quits, or stops responding.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error for @ mentions in unsubscribed private stream
2 participants