zulip/static
YashRE42 d82653c3de condense: Do not cache message_content height of 0 from recent_topics.
Previously, we suffered a bug where we would not properly condense
messages on first load of CZO (ie after login).

This bug was an unintended consequence of setting recent topics as the
default view, because since the page loads to recent_topics the
message_list is hidden but still gets rendered into the DOM and when
condense_and_collapse runs, it causes get_message_height to cache a
message height of 0, which results in the message not being collapsed.
There may be other ways to trigger the same broken mechanism.

This commit changes the function so we only return 0 but don't cache
the result.

Fixes: #20666.
2022-01-02 12:12:36 -08:00
..
assets icons: Set font-display: block for icon font. 2021-08-23 15:59:54 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images policies: Fix typo in Data Processing Addendum. 2021-12-14 23:20:19 -08:00
js condense: Do not cache message_content height of 0 from recent_topics. 2022-01-02 12:12:36 -08:00
shared typo: Rename default_hander to default_handler. 2021-12-28 09:19:57 -08:00
styles docs: Fix a few typos in documentation. 2021-12-28 09:36:59 -08:00
templates stream edit: Tighten up selectors for handlers. 2021-12-30 11:36:52 -08:00
third lint: Fix typos found by codespell. 2021-10-19 16:51:13 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00