File tree Expand file tree Collapse file tree
apps/meteor/client/views/room Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import RetentionPolicyWarning from '../body/RetentionPolicyWarning';
2323import RoomForeword from '../body/RoomForeword/RoomForeword' ;
2424import { useStoreScrollPosition } from '../body/hooks/useStoreScrollPosition' ;
2525import { useChat } from '../contexts/ChatContext' ;
26+ import type { RetentionPolicy } from '../hooks/useRetentionPolicy' ;
2627
2728type MessageListProps = {
2829 rid : IRoom [ '_id' ] ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const useDateScroll = (margin = 8): useDateScrollReturn => {
5151
5252 const bubbleOffset = bubbleRef . current ?. getBoundingClientRect ( ) . bottom || 0 ;
5353
54- type Matched = [ string , HTMLElement | undefined , { [ key : number ] : string | number } ?] | [ ] ;
54+ type Matched = [ string , HTMLElement | undefined , { [ key : string ] : string | number } ?] | [ ] ;
5555 // Gets the first non visible message date and sets the bubble date to it
5656 let matched : Matched = [ ...list ] . reduce < Matched > ( ( ret , divider ) => {
5757 // Sanitize elements
You can’t perform that action at this time.
0 commit comments