Skip to content

Commit d5f9305

Browse files
authored
fix: Declare MessageSearchOrder in MessageSearch (#280)
1 parent ec2520e commit d5f9305

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/smart-components/MessageSearch/context/hooks/useGetSearchedMessages.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useEffect } from 'react';
22

33
import type { GroupChannel, SendbirdGroupChat } from '@sendbird/chat/groupChannel';
4-
import { MessageSearchOrder, MessageSearchQueryParams } from '@sendbird/chat/lib/__definition';
4+
import type { MessageSearchQueryParams } from '@sendbird/chat/lib/__definition';
55
import type {
66
AdminMessage,
77
BaseMessage,
@@ -13,6 +13,11 @@ import type { SendbirdError } from '@sendbird/chat';
1313
import type { Logger } from '../../../../lib/SendbirdState';
1414
import * as messageActionTypes from '../dux/actionTypes';
1515

16+
enum MessageSearchOrder {
17+
SCORE = 'score',
18+
TIMESTAMP = 'ts',
19+
}
20+
1621
interface MainProps {
1722
currentChannel: GroupChannel;
1823
channelUrl: string;

0 commit comments

Comments
 (0)