message_list_tooltips: Convert .data("is-bot") to .attr.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-02 17:11:11 -07:00 committed by Tim Abbott
parent 87ea4313cd
commit c2bae4c9d9
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ export function initialize(): void {
message_list_tooltip(".view_user_card_tooltip", {
delay: LONG_HOVER_DELAY,
onShow(instance) {
const is_bot = $(instance.reference).data("is-bot");
const is_bot = $(instance.reference).attr("data-is-bot") === "true";
if (is_bot) {
instance.setContent(parse_html($("#view-bot-card-tooltip-template").html()));
} else {