|
|
@ -19,7 +19,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function() {
|
|
|
|
initialize: function() {
|
|
|
|
this.contactCollection = new Whisper.ConversationCollection();
|
|
|
|
this.contactCollection = new Backbone.Collection();
|
|
|
|
this.messageCollection = new Whisper.MessageCollection([], {
|
|
|
|
this.messageCollection = new Whisper.MessageCollection([], {
|
|
|
|
conversation: this
|
|
|
|
conversation: this
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -162,7 +162,10 @@
|
|
|
|
var members = this.get('members') || [];
|
|
|
|
var members = this.get('members') || [];
|
|
|
|
this.contactCollection.reset(
|
|
|
|
this.contactCollection.reset(
|
|
|
|
members.map(function(number) {
|
|
|
|
members.map(function(number) {
|
|
|
|
var c = this.collection.add({id: number, type: 'private'});
|
|
|
|
var c = ConversationController.create({
|
|
|
|
|
|
|
|
id : number,
|
|
|
|
|
|
|
|
type : 'private'
|
|
|
|
|
|
|
|
});
|
|
|
|
c.fetch();
|
|
|
|
c.fetch();
|
|
|
|
return c;
|
|
|
|
return c;
|
|
|
|
}.bind(this))
|
|
|
|
}.bind(this))
|
|
|
|