Changes from Baobab Development

There are a few new features and bug fixes in this branch, including:
- the Inbox App ID is exposed in addition to the BaseURL
- updated attachments logic: attachment JSON is now returned in the request for messages, so attachmentIDs -> attachmentData (similar to tagData on threads)
- tag interactions are now supported on threads
- you can fetch the drafts of a thread in addition of the messages of a thread
- preliminary support for downloading attachments (via https://github.com/eligrey/FileSaver.js/, not included)
We can actually upload multiple files at once so the response is actually a
list of attachment id's.


On Wed, Aug 6, 2014 at 7:22 PM, Caitlin Potter <notifications@github.com>
wrote:

> In src/core/api/models/file.js:
>
> > @@ -145,7 +163,9 @@ function uploadFile(namespace, fileOrFileName, fileDataOrCallback, callback) {
> >    apiRequest(inbox, 'post', url, data, function(err, response) {
> >      if (err) return callback(err, null);
> >
> > -    callback(null, makeFile(response));
> > +    var i = 0;
> > +    for(i = 0; i < response.length; i++)
>
> why do we get a response containing more than one file when uploading a
> new file? That strikes me as weird.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/inboxapp/inbox.js/pull/39/files#r15915831>.
>