js: Read zid with rows.id.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-11 22:31:25 -08:00
committed by Tim Abbott
parent 8892f463a8
commit 2834b051d2
4 changed files with 6 additions and 5 deletions

View File

@@ -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