Skip to content

Commit bdcc7e4

Browse files
TS
1 parent 6e60799 commit bdcc7e4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

apps/meteor/client/views/room/MessageList/MessageList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import RetentionPolicyWarning from '../body/RetentionPolicyWarning';
2323
import RoomForeword from '../body/RoomForeword/RoomForeword';
2424
import { useStoreScrollPosition } from '../body/hooks/useStoreScrollPosition';
2525
import { useChat } from '../contexts/ChatContext';
26+
import type { RetentionPolicy } from '../hooks/useRetentionPolicy';
2627

2728
type MessageListProps = {
2829
rid: IRoom['_id'];

apps/meteor/client/views/room/hooks/useDateScroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)