mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
ab3da1891f
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()
|