narrow: Use message list id to track message lists in DOM.

This removes use of zfilt and zhome from codebase.
This commit is contained in:
Aman Agrawal
2024-01-17 06:53:40 +00:00
committed by Tim Abbott
parent 91ee0bf676
commit 633f64a79e
31 changed files with 297 additions and 179 deletions

View File

@@ -404,8 +404,8 @@ export function update_timestamps(): void {
const className = entry.className;
const $elements = $(`.${CSS.escape(className)}`);
// The element might not exist any more (because it
// was in the zfilt table, or because we added
// messages above it and re-collapsed).
// was in the narrowed message list which was removed,
// or because we added messages above it and re-collapsed).
if ($elements.length > 0) {
const time = entry.time;
const rendered_time = render_now(time, today);