Move mxClient to object in sendMessage

This commit is contained in:
Florian Duros 2022-10-07 11:02:22 +02:00
parent 21677e67e8
commit c7f912529d
No known key found for this signature in database
GPG key ID: 9700AA5870258A0B
2 changed files with 4 additions and 4 deletions

View file

@ -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]);