mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fixup change:active_at handling when setting null
When a conversation goes from active to not active, it should be removed the view rather than promoted. // FREEBIE
This commit is contained in:
@@ -8,10 +8,14 @@
|
||||
Whisper.ConversationListView = Whisper.ListView.extend({
|
||||
tagName: 'div',
|
||||
itemView: Whisper.ConversationListItemView,
|
||||
moveToTop: function(conversation) {
|
||||
onChangeActiveAt: function(conversation) {
|
||||
var $el = this.$('.' + conversation.cid);
|
||||
if ($el && $el.length > 0) {
|
||||
$el.prependTo(this.el);
|
||||
if (conversation.get('active_at')) {
|
||||
$el.prependTo(this.el);
|
||||
} else {
|
||||
$el.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user