mirror of https://github.com/zulip/zulip.git
b3594c984a
We recently added a feature to warn users that they may need to scroll down to view messages that they just sent, but it was broken due to various complexities in the rendering code path. Now we compute it a bit more rigorously. It requires us to pass some info about rendering up and down the stack, which is why it's kind of a long commit, but the bulk of the logic is in these JS files: * message_list_view.js * notifications.js I choose to pass structs around instead of booleans, because I anticipate we may eventually add more metadata about rendering to it, plus bools are just kinda brittle. (The exceptions are that `_maybe_autoscroll`, which is at the bottom of the stack, just passes back a simple boolean, and `notify_local_mixes`, also at the bottom of the stack, just accepts a simple boolean.) This errs on the side of warning the user, even if the new message is partially visible. Fixes #11138 |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
icons/fonts | ||
images | ||
js | ||
locale | ||
styles | ||
templates | ||
third | ||
ts | ||
.gitignore | ||
favicon.ico | ||
node_modules |