Support RTL text in messages (#717)
authorAjay Bura <ajbura@gmail.com>
Sat, 6 Aug 2022 07:10:24 +0000 (12:40 +0530)
committerAjay Bura <ajbura@gmail.com>
Sat, 6 Aug 2022 07:10:24 +0000 (12:40 +0530)
src/app/molecules/message/Message.jsx

index 2f32bafa6d69a1f507777ef2d617c94560ffa340..6e3def431fa3f089e49d04e96ac85304e74c4290 100644 (file)
@@ -246,7 +246,7 @@ const MessageBody = React.memo(({
 
   return (
     <div className="message__body">
-      <div className={`text ${emojiOnly ? 'text-h1' : 'text-b1'}`}>
+      <div dir="auto" className={`text ${emojiOnly ? 'text-h1' : 'text-b1'}`}>
         { msgType === 'm.emote' && (
           <>
             {'* '}