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:
lilia 2015-01-25 15:50:00 -10:00
parent 5762724709
commit 17deb69a91

View file

@ -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: {