Mailspring/internal_packages/notifications/lib/activity-sidebar-long-poll-store.coffee
dillon ab3da1891f fix(activity-sidebar): render correct copy on only correct moments
Summary:
fixes T3725

changes:
- show the sync mail activity only if number of deltas received is greater than 10
- make the sync mail activity notification persist for longer, since large deltas (>1k) come in intervals of about 25 seconds, which was greater than our previous timeout interval of 15 seconds
- change to clearer copy
- minor style changes to match new copy

Test Plan: tested manually

Reviewers: bengotow

Maniphest Tasks: T3725

Differential Revision: https://phab.nylas.com/D2051
2015-09-22 14:05:26 -07:00

8 lines
267 B
CoffeeScript

{Actions} = require 'nylas-exports'
NylasStore = require 'nylas-store'
class AccountSidebarLongPollStore extends NylasStore
constructor: ->
@listenTo Actions.longPollReceivedRawDeltasPing, (n) => @trigger(n)
module.exports = new AccountSidebarLongPollStore()