move search messages to new sdk

This commit is contained in:
Ajay Bura 2026-08-25 14:45:03 +05:30
commit 7fa5ee9fc6
8 changed files with 363 additions and 348 deletions

View file

@ -19,7 +19,8 @@ import { useMediaAuthentication } from './useMediaAuthentication';
export const useMessageParserOptions = (
roomId: string,
getRoomName: GetRoomNameCallback,
getMemberName: GetRoomMemberNameCallback
getMemberName: GetRoomMemberNameCallback,
highlightRegex?: RegExp
) => {
const ct = useClient();
const useAuthentication = useMediaAuthentication();
@ -49,6 +50,7 @@ export const useMessageParserOptions = (
getReactCustomHtmlParser(ct, roomId, {
linkifyOpts,
useAuthentication,
highlightRegex,
handleSpoilerClick: spoilerClickHandler,
handleMentionClick: mentionClickHandler,
getMemberName,
@ -58,6 +60,7 @@ export const useMessageParserOptions = (
ct,
roomId,
linkifyOpts,
highlightRegex,
spoilerClickHandler,
mentionClickHandler,
useAuthentication,