diff --git a/src/hooks/useHTMLTextDirection.tsx b/src/hooks/useHTMLTextDirection.tsx
index 393ae32d4..686ad5b26 100644
--- a/src/hooks/useHTMLTextDirection.tsx
+++ b/src/hooks/useHTMLTextDirection.tsx
@@ -15,18 +15,4 @@ const useHTMLTextDirection = (direction: HTMLTextDirection) => {
}, [direction]);
};
-export const useMessageLayoutDirection = (direction: HTMLTextDirection, forceLeftToRightMessageLayout: boolean, loading: boolean) => {
- useEffect(() => {
- if (loading) return;
- const messageListElements = document.getElementsByClassName('sendbird-conversation__messages');
- if (messageListElements.length > 0) {
- Array.from(messageListElements).forEach((elem: HTMLElement) => {
- elem.dir = forceLeftToRightMessageLayout
- ? 'ltr'
- : direction;
- });
- }
- }, [direction, forceLeftToRightMessageLayout, loading]);
-};
-
export default useHTMLTextDirection;
diff --git a/src/modules/Channel/components/MessageList/index.tsx b/src/modules/Channel/components/MessageList/index.tsx
index dcbe558c9..dadde6762 100644
--- a/src/modules/Channel/components/MessageList/index.tsx
+++ b/src/modules/Channel/components/MessageList/index.tsx
@@ -25,6 +25,7 @@ import { getMessagePartsInfo } from '../../../GroupChannel/components/MessageLis
import { GroupChannelMessageListProps } from '../../../GroupChannel/components/MessageList';
import { GroupChannelUIBasicProps } from '../../../GroupChannel/components/GroupChannelUI/GroupChannelUIView';
import { deleteNullish } from '../../../../utils/utils';
+import { getHTMLTextDirection } from '../../../../utils';
const SCROLL_BOTTOM_PADDING = 50;
@@ -175,7 +176,13 @@ export const MessageList = (props: MessageListProps) => {
return (
<>
{!isScrolled &&