mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix: remove explicit cast to string for msg.content
This commit is contained in:
@@ -57,7 +57,7 @@ const Message = observer(
|
||||
|
||||
const { openScreen } = useIntermediate();
|
||||
|
||||
const content = message.content as string;
|
||||
const content = message.content;
|
||||
const head =
|
||||
preferHead || (message.reply_ids && message.reply_ids.length > 0);
|
||||
|
||||
@@ -168,7 +168,10 @@ const Message = observer(
|
||||
<Attachment
|
||||
key={index}
|
||||
attachment={attachment}
|
||||
hasContent={index > 0 || content.length > 0}
|
||||
hasContent={
|
||||
index > 0 ||
|
||||
(content ? content.length > 0 : false)
|
||||
}
|
||||
/>
|
||||
))}
|
||||
{message.embeds?.map((embed, index) => (
|
||||
|
||||
Reference in New Issue
Block a user