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:
parent
4e9e811d12
commit
01918049b4
3 changed files with 34 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue