mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix double selected states
Previously, when changing selection from an unread to a read conversation, the unread conversation would not be deselected. // FREEBIE
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
},
|
||||
|
||||
select: function(e) {
|
||||
this.$el.addClass('selected');
|
||||
this.$el.addClass('selected').siblings('.selected').removeClass('selected');
|
||||
this.$el.trigger('select', {conversation: this.model});
|
||||
},
|
||||
|
||||
|
||||
@@ -8,14 +8,6 @@
|
||||
Whisper.ConversationListView = Whisper.ListView.extend({
|
||||
tagName: 'div',
|
||||
itemView: Whisper.ConversationListItemView,
|
||||
events: {
|
||||
'click .contact': 'select',
|
||||
},
|
||||
select: function(e) {
|
||||
var target = $(e.target).closest('.contact');
|
||||
target.siblings().removeClass('selected');
|
||||
return false;
|
||||
},
|
||||
moveToTop: function(conversation) {
|
||||
var $el = this.$('.' + conversation.cid);
|
||||
if ($el && $el.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user