Promote groups to top of inbox when we update them
// FREEBIE
This commit is contained in:
parent
73983118dc
commit
fd29ac8d2c
1 changed files with 3 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue