mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
3d84c41625
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
8 lines
267 B
CoffeeScript
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()
|