Handle messages with no content, improve prepend perf
This commit is contained in:
parent
50d735aaa3
commit
3c105c493b
3 changed files with 100 additions and 79 deletions
|
@ -82,7 +82,7 @@ describe('message reducer', () => {
|
|||
server: 'srv',
|
||||
tab: '#chan1',
|
||||
prepend: true,
|
||||
messages: [{ id: 1 }, { id: 2 }]
|
||||
messages: [{ id: 1, date: new Date() }, { id: 2, date: new Date() }]
|
||||
});
|
||||
|
||||
expect(state).toMatchObject({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue