From bbb5d56516e52bced18a4148044c58c7881b69bf Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 22 Jul 2014 22:52:23 -1000 Subject: [PATCH] Don't reopen a currently selected conversation --- js/views/conversation_list_view.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/views/conversation_list_view.js b/js/views/conversation_list_view.js index 5c529f077cd4..5c6392ff2e60 100644 --- a/js/views/conversation_list_view.js +++ b/js/views/conversation_list_view.js @@ -15,8 +15,10 @@ var Whisper = Whisper || {}; select: function(e) { var target = $(e.target).closest('.conversation'); - target.siblings().addClass('closed'); - target.removeClass('closed').addClass('selected'); + if (target.hasClass('closed')) { + target.siblings().addClass('closed'); + target.removeClass('closed').addClass('selected'); + } return false; }, });