Show "unplayed" dot on outgoing audio messages
This commit is contained in:
parent
b73c029d5f
commit
14929fb408
16 changed files with 219 additions and 60 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
isMessageJustForMe,
|
||||
isRead,
|
||||
isSent,
|
||||
isViewed,
|
||||
maxStatus,
|
||||
sendStateReducer,
|
||||
someSendStatus,
|
||||
|
@ -49,6 +50,20 @@ describe('message send state utilities', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('isViewed', () => {
|
||||
it('returns true for viewed statuses', () => {
|
||||
assert.isTrue(isViewed(SendStatus.Viewed));
|
||||
});
|
||||
|
||||
it('returns false for non-viewed statuses', () => {
|
||||
assert.isFalse(isViewed(SendStatus.Read));
|
||||
assert.isFalse(isViewed(SendStatus.Delivered));
|
||||
assert.isFalse(isViewed(SendStatus.Sent));
|
||||
assert.isFalse(isViewed(SendStatus.Pending));
|
||||
assert.isFalse(isViewed(SendStatus.Failed));
|
||||
});
|
||||
});
|
||||
|
||||
describe('isRead', () => {
|
||||
it('returns true for read and viewed statuses', () => {
|
||||
assert.isTrue(isRead(SendStatus.Read));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue