mirror of https://github.com/zulip/zulip.git
Resize GROUP PMs more aggressively.
(imported from commit fbef79f2bb544648fcf4ea26e25354a7ed6912df)
This commit is contained in:
parent
ee28e5e2f6
commit
788943887a
|
@ -367,6 +367,7 @@ function process_loaded_for_unread(messages) {
|
||||||
activity.update_huddles();
|
activity.update_huddles();
|
||||||
unread.process_loaded_messages(messages);
|
unread.process_loaded_messages(messages);
|
||||||
update_unread_counts();
|
update_unread_counts();
|
||||||
|
ui.resize_page_components();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Takes a list of messages and marks them as read
|
// Takes a list of messages and marks them as read
|
||||||
|
@ -1277,12 +1278,6 @@ function main() {
|
||||||
// get the initial message list
|
// get the initial message list
|
||||||
function load_more(messages) {
|
function load_more(messages) {
|
||||||
|
|
||||||
// After our initial batch of messages, we have enough info to do basic sizing of
|
|
||||||
// sidebars. In particular, this allows GROUP PMs to become visible. This line of
|
|
||||||
// code doesn't have to be precisely here, but it seemed like a good place to put it.
|
|
||||||
// Basically, we want to simulate a resize event shortly after reload.
|
|
||||||
ui.resize_page_components();
|
|
||||||
|
|
||||||
// If we received the initially selected message, select it on the client side,
|
// If we received the initially selected message, select it on the client side,
|
||||||
// but not if the user has already selected another one during load.
|
// but not if the user has already selected another one during load.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue