Keep last seen indicator around for five seconds

Helps calm the user experience a little more, makes it easier to
understand what's happening when messages are coming in quickly.

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-05-25 11:28:31 -07:00
parent 4e9e811d12
commit 01918049b4
3 changed files with 34 additions and 3 deletions

View file

@ -9,4 +9,11 @@ describe('LastSeenIndicatorView', function() {
assert.equal(view.count, 10);
});
it('increments count', function() {
var view = new Whisper.LastSeenIndicatorView({count: 4});
assert.equal(view.count, 4);
view.increment(3);
assert.equal(view.count, 7);
});
});