mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Three events i.e. 'stream create', 'subscription add', and 'message' event are received by client on channel creation. Earlier, we were narrowing to channel while processing the 'stream create' event. This was resulting in fetching messages for that narrow even before adding subscription. This resulted in a bug where "You subscribed to" bookend was visible in the message feed after the "channel events" message. This commit updates the logic to narrow ONLY after adding subscription i.e. while processing "subscription add" event. Note: A channel creator who is not going to subscribe to the channel themselves is NOT narrowed to the channel view. This fixes the incorrect behavior. |
||
|---|---|---|
| .. | ||
| e2e-tests | ||
| generated | ||
| html | ||
| images | ||
| server | ||
| shared | ||
| src | ||
| styles | ||
| templates | ||
| tests | ||
| third | ||
| .browserslistrc | ||
| .gitignore | ||
| babel.config.js | ||
| debug-require-webpack-plugin.ts | ||
| debug-require.js | ||
| postcss.config.js | ||
| webpack.assets.json | ||
| webpack.config.ts | ||
| webpack.dev-assets.json | ||