From 99a2685f933b82941f19898dfeaa266d4ec7a11c Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 20 Nov 2014 15:43:51 -0800 Subject: [PATCH] Store attachments as binary blobs Move base64 encoding of attachments to an AttachmentView. This makes image rendering an asynchronous task so we fire an update event to indicate to the parent MessageListView that its content has changed height and it is time to scroll down. --- index.html | 4 +-- js/models/conversations.js | 29 ++------------- js/models/messages.js | 7 +++- js/views/file_input_view.js | 3 +- js/views/message_list_view.js | 4 ++- js/views/message_view.js | 68 ++++++++++++++++++++++++++++------- stylesheets/index.css | 3 +- 7 files changed, 71 insertions(+), 47 deletions(-) diff --git a/index.html b/index.html index c958f51f6..e0957de56 100644 --- a/index.html +++ b/index.html @@ -60,12 +60,10 @@ - {{#attachments}} - - {{/attachments}}