left_sidebar: Add scrollbar for private messages region.

This fixes a longstanding UI issue when you have way too many recent
private message conversations, as you can now scroll down the list to
find what you're looking for.

Fixes #5384.
This commit is contained in:
Challa Venkata Raghava Reddy
2019-02-13 18:35:58 +05:30
committed by Tim Abbott
parent af3b18d1f5
commit 815d009006
4 changed files with 38 additions and 25 deletions

View File

@@ -62,7 +62,7 @@ function set_pm_conversation_count(user_ids_string, count) {
function remove_expanded_private_messages() {
stream_popover.hide_topic_popover();
$("ul.expanded_private_messages").remove();
$("#private-container").remove();
resize.resize_stream_filters_container();
}
@@ -167,6 +167,9 @@ exports.update_private_messages = function () {
exports.rebuild_recent("");
$(".top_left_private_messages").addClass('active-filter');
}
if ($("#private-container").length !== 0) {
ui.set_up_scrollbar($("#private-container"));
}
};
exports.set_click_handlers = function () {