Retry outbound "normal" messages for up to a day
This commit is contained in:
parent
62cf51c060
commit
a85dd1be36
30 changed files with 1414 additions and 603 deletions
|
@ -45,6 +45,7 @@ const {
|
|||
closeRecommendedGroupSizeModal,
|
||||
createGroup,
|
||||
messageSizeChanged,
|
||||
messageStoppedByMissingVerification,
|
||||
openConversationInternal,
|
||||
repairNewestMessage,
|
||||
repairOldestMessage,
|
||||
|
@ -888,6 +889,35 @@ describe('both/state/ducks/conversations', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('MESSAGE_STOPPED_BY_MISSING_VERIFICATION', () => {
|
||||
it('adds messages that need conversation verification, removing duplicates', () => {
|
||||
const first = reducer(
|
||||
getEmptyState(),
|
||||
messageStoppedByMissingVerification('message 1', ['convo 1'])
|
||||
);
|
||||
const second = reducer(
|
||||
first,
|
||||
messageStoppedByMissingVerification('message 1', ['convo 2'])
|
||||
);
|
||||
const third = reducer(
|
||||
second,
|
||||
messageStoppedByMissingVerification('message 2', [
|
||||
'convo 1',
|
||||
'convo 3',
|
||||
])
|
||||
);
|
||||
|
||||
assert.deepStrictEqual(
|
||||
third.outboundMessagesPendingConversationVerification,
|
||||
{
|
||||
'convo 1': ['message 1', 'message 2'],
|
||||
'convo 2': ['message 1'],
|
||||
'convo 3': ['message 2'],
|
||||
}
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('REPAIR_NEWEST_MESSAGE', () => {
|
||||
it('updates newest', () => {
|
||||
const action = repairNewestMessage(conversationId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue