mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
popovers: Fix user-mention popover errors of @all mention.
`@all` and `@everyone` mentions don't have specific popover, so constraint added to prevent console errors.
This commit is contained in:
committed by
Tim Abbott
parent
93e29629ab
commit
c8d038a239
@@ -438,10 +438,13 @@ exports.register_click_handlers = function () {
|
||||
});
|
||||
|
||||
$("#main_div").on("click", ".user-mention", function (e) {
|
||||
var id = $(this).attr('data-user-id');
|
||||
if (id === '*') {
|
||||
return;
|
||||
}
|
||||
var row = $(this).closest(".message_row");
|
||||
e.stopPropagation();
|
||||
var message = current_msg_list.get(rows.id(row));
|
||||
var id = $(this).attr('data-user-id');
|
||||
var user = people.get_person_from_user_id(id);
|
||||
show_user_info_popover(this, user, message);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user