mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
js: Read zid with rows.id.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
8892f463a8
commit
2834b051d2
@@ -16,8 +16,8 @@ function message_unhover() {
|
||||
}
|
||||
|
||||
function message_hover(message_row) {
|
||||
const id = parseInt(message_row.attr("zid"), 10);
|
||||
if (current_message_hover && message_row && current_message_hover.attr("zid") === message_row.attr("zid")) {
|
||||
const id = rows.id(message_row);
|
||||
if (current_message_hover && rows.id(current_message_hover) === id) {
|
||||
return;
|
||||
}
|
||||
// Don't allow on-hover editing for local-only messages
|
||||
|
||||
Reference in New Issue
Block a user