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',