mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Retry outbound "normal" messages for up to a day
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
SendStateByConversationId,
|
||||
SendStatus,
|
||||
isDelivered,
|
||||
isFailed,
|
||||
isMessageJustForMe,
|
||||
isRead,
|
||||
isSent,
|
||||
@@ -106,6 +107,20 @@ describe('message send state utilities', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('isFailed', () => {
|
||||
it('returns true for failed statuses', () => {
|
||||
assert.isTrue(isFailed(SendStatus.Failed));
|
||||
});
|
||||
|
||||
it('returns false for non-failed statuses', () => {
|
||||
assert.isFalse(isFailed(SendStatus.Viewed));
|
||||
assert.isFalse(isFailed(SendStatus.Read));
|
||||
assert.isFalse(isFailed(SendStatus.Delivered));
|
||||
assert.isFalse(isFailed(SendStatus.Sent));
|
||||
assert.isFalse(isFailed(SendStatus.Pending));
|
||||
});
|
||||
});
|
||||
|
||||
describe('someSendStatus', () => {
|
||||
it('returns false if there are no send states', () => {
|
||||
const alwaysTrue = () => true;
|
||||
|
||||
Reference in New Issue
Block a user