From fd29ac8d2c3dd9837b7a068106cff16ccbeceae9 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 16 Sep 2015 16:12:14 -0700 Subject: [PATCH] Promote groups to top of inbox when we update them // FREEBIE --- js/views/new_group_update_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/views/new_group_update_view.js b/js/views/new_group_update_view.js index a1f8691b..af3f4377 100644 --- a/js/views/new_group_update_view.js +++ b/js/views/new_group_update_view.js @@ -58,7 +58,10 @@ }, send: function() { return this.avatarInput.getThumbnail().then(function(avatarFile) { + var now = Date.now(); var attrs = { + timestamp: now, + active_at: now, name: this.$('.name').val(), members: _.union(this.model.get('members'), this.recipients_view.recipients.pluck('id')) }; @@ -73,7 +76,6 @@ this.model.trigger('change:avatar'); } - var now = Date.now(); var message = this.model.messageCollection.add({ conversationId : this.model.id, type : 'outgoing',