mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
reactions: Fix reactions not displayed in all messages view.
We were not updating all the rendered `messages-rows` but just
for the current view.
This bug was introduced in
df180f7bd5
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import $ from "jquery";
|
||||
import assert from "minimalistic-assert";
|
||||
|
||||
import * as blueslip from "./blueslip";
|
||||
@@ -70,6 +71,14 @@ export function all_rendered_message_lists(): MessageList[] {
|
||||
return rendered_message_lists;
|
||||
}
|
||||
|
||||
export function all_rendered_row_for_message_id(message_id: number): JQuery {
|
||||
let $rows = $();
|
||||
for (const msg_list of all_rendered_message_lists()) {
|
||||
$rows = $rows.add(msg_list.get_row(message_id));
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
export function all_current_message_rows(): JQuery {
|
||||
assert(current !== undefined);
|
||||
return current.view.$list.find(".message_row");
|
||||
|
||||
Reference in New Issue
Block a user