fix(streaming): Tell the API we want folder/label deltas

This commit is contained in:
Ben Gotow 2015-07-31 18:54:40 -07:00
parent 11b20f326d
commit 83197fabd7

View file

@ -100,7 +100,7 @@ class NylasLongConnection
@withCursor (cursor) =>
return if @state is NylasLongConnection.State.Ended
console.log("Long Polling Connection: Starting for namespace #{@_namespaceId}, token #{@_api.APIToken}, with cursor #{cursor}")
options = url.parse("#{@_api.APIRoot}/n/#{@_namespaceId}/delta/streaming?cursor=#{cursor}&exclude_types=event")
options = url.parse("#{@_api.APIRoot}/n/#{@_namespaceId}/delta/streaming?cursor=#{cursor}&exclude_types=event&exclude_folders=false")
options.auth = "#{@_api.APIToken}:"
if @_api.APIRoot.indexOf('https') is -1