move search messages to new sdk
This commit is contained in:
parent
8ef2ecb419
commit
7fa5ee9fc6
8 changed files with 363 additions and 348 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue