Move mxClient to object in sendMessage
This commit is contained in:
parent
21677e67e8
commit
c7f912529d
2 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ export function WysiwygComposer(
|
|||
} });
|
||||
|
||||
const memoizedSendMessage = useCallback(() => {
|
||||
sendMessage(content, mxClient, { roomContext, ...props });
|
||||
sendMessage(content, { mxClient, roomContext, ...props });
|
||||
wysiwyg.clear();
|
||||
ref.current?.focus();
|
||||
}, [content, mxClient, roomContext, wysiwyg, props, ref]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue