@@ -13,8 +13,8 @@ import {
1313 SendMessageAPIResponse ,
1414 StreamChat ,
1515 Message as StreamMessage ,
16+ UpdatedMessage ,
1617} from 'stream-chat' ;
17- import { v4 as uuidv4 } from 'uuid' ;
1818
1919import { EmptyStateIndicator as EmptyStateIndicatorDefault } from '../Indicators/EmptyStateIndicator' ;
2020import { LoadingErrorIndicator as LoadingErrorIndicatorDefault } from '../Indicators/LoadingErrorIndicator' ;
@@ -36,7 +36,7 @@ import {
3636 ThreadProvider ,
3737} from '../../contexts/threadContext/ThreadContext' ;
3838import { useTranslationContext } from '../../contexts/translationContext/TranslationContext' ;
39- import { emojiData as emojiDataDefault } from '../../utils/utils' ;
39+ import { emojiData as emojiDataDefault , randomId } from '../../utils/utils' ;
4040
4141import type { LoadingErrorProps } from '../Indicators/LoadingErrorIndicator' ;
4242import type { LoadingProps } from '../Indicators/LoadingIndicator' ;
@@ -111,7 +111,7 @@ export type ChannelProps<
111111 */
112112 doUpdateMessageRequest ?: (
113113 channelId : string ,
114- updatedMessage : StreamMessage < At , Me , Us > ,
114+ updatedMessage : UpdatedMessage < At , Ch , Co , Me , Re , Us > ,
115115 ) => ReturnType < StreamChat < At , Ch , Co , Ev , Me , Re , Us > [ 'updateMessage' ] > ;
116116 emojiData ?: MessagesContextValue < At , Ch , Co , Ev , Me , Re , Us > [ 'emojiData' ] ;
117117 /**
@@ -454,7 +454,7 @@ export const Channel = <
454454 attachments,
455455 created_at : new Date ( ) ,
456456 html : text ,
457- id : `${ client . userID } -${ uuidv4 ( ) } ` ,
457+ id : `${ client . userID } -${ randomId ( ) } ` ,
458458 mentioned_users :
459459 mentioned_users ?. map ( ( userId ) => ( {
460460 id : userId ,
0 commit comments