mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: update autoLink logic to always process both received and sent messages
This commit is contained in:
parent
98d79488a9
commit
8f0def3ffb
@ -28,7 +28,7 @@ const TextMessage: React.FC<TextMessageProps> = ({ message }) => {
|
||||
}, [message]);
|
||||
|
||||
const autoLink = () => {
|
||||
if (message.direction === Direction.received && messageTextRef.current) {
|
||||
if (messageTextRef.current) {
|
||||
const text = messageTextRef.current.innerText;
|
||||
|
||||
messageTextRef.current.innerHTML = Autolinker.link(text, {
|
||||
|
Loading…
Reference in New Issue
Block a user