mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
Fix traceback when clicking on right sidebar unread counts numbers.
If you clicked on the unread counts span inside the right sidebar links, e.target would not be the link itself but instead the count span inside the link, so the extraction of the user's email address was incorrect. (imported from commit 559d93622078e4d909f60de794df3f039ea7e5f2)
This commit is contained in:
@@ -1204,7 +1204,7 @@ $(function () {
|
||||
});
|
||||
|
||||
$('#user_presences').on('click', 'a', function (e) {
|
||||
var email = $(e.target).attr('data-email');
|
||||
var email = $(e.target).closest('a').attr('data-email');
|
||||
narrow.by('pm-with', email, {trigger: 'presence list'});
|
||||
compose.start('private', {private_message_recipient: email,
|
||||
trigger: 'presence list'});
|
||||
|
||||
Reference in New Issue
Block a user