left_sidebar: Use DM identifiers around direct-messages list.

This commit is contained in:
Karl Stolley
2023-10-30 10:18:29 -05:00
committed by Tim Abbott
parent dcd891a176
commit 825a7106c6
5 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ export function close() {
update_private_messages();
}
export function _build_private_messages_list() {
export function _build_direct_messages_list() {
const conversations = pm_list_data.get_conversations();
const pm_list_info = pm_list_data.get_list_info(zoomed);
const conversations_to_be_shown = pm_list_info.conversations_to_be_shown;
@@ -58,7 +58,7 @@ export function _build_private_messages_list() {
}
function set_dom_to(new_dom) {
const $container = scroll_util.get_content_element($("#private_messages_list"));
const $container = scroll_util.get_content_element($("#direct-messages-list"));
function replace_content(html) {
$container.html(html);
@@ -90,7 +90,7 @@ export function update_private_messages() {
prior_dom = undefined;
}
} else {
const new_dom = _build_private_messages_list();
const new_dom = _build_direct_messages_list();
set_dom_to(new_dom);
}
// Make sure to update the left sidebar heights after updating