Make clicking on a presence list name narrow you to those PMs.

This parallels clicking on a stream name, which narrows you to that
stream. This also gives you a discoverable way to narrow to PMs with a
particular person.

(imported from commit 6c706f0643f6a8ec20ac38360153227ec2f645ae)
This commit is contained in:
Jessica McKellar 2013-05-24 15:42:42 -04:00
parent 1bfa3d4505
commit c1a067857b
1 changed files with 1 additions and 0 deletions

View File

@ -1245,6 +1245,7 @@ $(function () {
$('#user_presences').on('click', 'a', function (e) {
var email = $(e.target).attr('data-email');
narrow.by('pm-with', email, {trigger: 'presence list'});
compose.start('private', {private_message_recipient: email,
trigger: 'presence list'});
// The preventDefault is necessary so that clicking the