mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Rebind events when opening a previously opened conversation
This commit is contained in:
@@ -24,8 +24,6 @@ var Whisper = Whisper || {};
|
||||
|
||||
if (!this.view) {
|
||||
this.view = new Whisper.ConversationView({ model: this.model });
|
||||
} else {
|
||||
this.view.delegateEvents();
|
||||
}
|
||||
this.model.collection.trigger('selected', this.view);
|
||||
},
|
||||
|
||||
@@ -57,6 +57,8 @@
|
||||
},
|
||||
|
||||
render: function() {
|
||||
this.delegateEvents();
|
||||
this.view.delegateEvents();
|
||||
this.view.scrollToBottom();
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user