Add timestamps to attachment filenames

This commit is contained in:
lilia 2017-01-12 13:51:38 -08:00
parent d2c1e6df27
commit 41216f1378
2 changed files with 13 additions and 4 deletions

View file

@ -259,7 +259,10 @@
},
loadAttachments: function() {
this.model.get('attachments').forEach(function(attachment) {
var view = new Whisper.AttachmentView({ model: attachment });
var view = new Whisper.AttachmentView({
model: attachment,
timestamp: this.model.get('sent_at')
});
this.listenTo(view, 'update', function() {
if (!view.el.parentNode) {
this.trigger('beforeChangeHeight');