|
|
@ -295,6 +295,9 @@
|
|
|
|
fetchMessages: function() {
|
|
|
|
fetchMessages: function() {
|
|
|
|
console.log('fetchMessages');
|
|
|
|
console.log('fetchMessages');
|
|
|
|
this.$('.bar-container').show();
|
|
|
|
this.$('.bar-container').show();
|
|
|
|
|
|
|
|
if (this.inProgressFetch) {
|
|
|
|
|
|
|
|
console.log('Multiple fetchMessage calls!');
|
|
|
|
|
|
|
|
}
|
|
|
|
this.inProgressFetch = this.model.fetchContacts().then(function() {
|
|
|
|
this.inProgressFetch = this.model.fetchContacts().then(function() {
|
|
|
|
return this.model.fetchMessages().then(function() {
|
|
|
|
return this.model.fetchMessages().then(function() {
|
|
|
|
this.$('.bar-container').hide();
|
|
|
|
this.$('.bar-container').hide();
|
|
|
|