Promote groups to top of inbox when we update them

// FREEBIE
This commit is contained in:
lilia 2015-09-16 16:12:14 -07:00
parent 73983118dc
commit fd29ac8d2c

View file

@ -58,7 +58,10 @@
}, },
send: function() { send: function() {
return this.avatarInput.getThumbnail().then(function(avatarFile) { return this.avatarInput.getThumbnail().then(function(avatarFile) {
var now = Date.now();
var attrs = { var attrs = {
timestamp: now,
active_at: now,
name: this.$('.name').val(), name: this.$('.name').val(),
members: _.union(this.model.get('members'), this.recipients_view.recipients.pluck('id')) members: _.union(this.model.get('members'), this.recipients_view.recipients.pluck('id'))
}; };
@ -73,7 +76,6 @@
this.model.trigger('change:avatar'); this.model.trigger('change:avatar');
} }
var now = Date.now();
var message = this.model.messageCollection.add({ var message = this.model.messageCollection.add({
conversationId : this.model.id, conversationId : this.model.id,
type : 'outgoing', type : 'outgoing',