Make conversation panel work with a new contact
Prevent view from fetching messages without an id, as this causes a crash.
This commit is contained in:
parent
5762724709
commit
17deb69a91
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@
|
|||
});
|
||||
this.$el.find('.discussion-container').append(this.view.el);
|
||||
|
||||
this.model.fetchMessages({reset: true});
|
||||
if (this.model.id) {
|
||||
this.model.fetchMessages({reset: true});
|
||||
}
|
||||
},
|
||||
|
||||
events: {
|
||||
|
|
Loading…
Add table
Reference in a new issue