pm list: Avoid duplicate resize calls.

We are basically just inlining remove_expanded_private_messages,
skipping the resize call that happens at the end of rebuild_recent.

This change makes sense even if we keep the
current UI for Private Messages.
This commit is contained in:
Steve Howell
2019-03-27 17:04:51 +00:00
committed by Tim Abbott
parent bfdce11c8f
commit 6b144003c2

View File

@@ -145,7 +145,9 @@ exports._build_private_messages_list = function (active_conversation, max_privat
};
exports.rebuild_recent = function (active_conversation) {
remove_expanded_private_messages();
stream_popover.hide_topic_popover();
$("#private-container").remove();
if (private_messages_open) {
var max_private_messages = 5;
var private_li = get_filter_li();