File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
projects/stream-chat-angular/src/lib Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ describe('getReadBy', () => {
77 const sender = { id : 'sender' , name : 'Tess' } ;
88
99 const message = {
10- updated_at : new Date ( '2021-09-14T13:08:30.004112Z' ) ,
10+ created_at : new Date ( '2021-09-14T13:08:30.004112Z' ) ,
1111 user : sender ,
1212 } as FormatMessageResponse < DefaultStreamChatGenerics > ;
1313 const channel = {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const getReadBy = <
1111 Object . keys ( channel . state . read ) . forEach ( ( key ) => {
1212 if (
1313 channel . state . read [ key ] . last_read . getTime ( ) >=
14- message . updated_at . getTime ( ) &&
14+ message . created_at . getTime ( ) &&
1515 message . user ?. id !== key
1616 ) {
1717 readBy . push ( channel . state . read [ key ] . user ) ;
You can’t perform that action at this time.
0 commit comments