mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
Fixed sent attachments code
This commit is contained in:
@@ -187,17 +187,12 @@ export const MessageReply = observer(({ index, channel, id }: Props) => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
{message.attachments &&
|
{message.attachments && (
|
||||||
message.attachments.length > 0 && (
|
|
||||||
<>
|
<>
|
||||||
<File size={16} />
|
<File size={16} />
|
||||||
<em>
|
<em>{message.attachments.length > 1 ?
|
||||||
{message.attachments.length >
|
<Text id="app.main.channel.misc.sent_multiple_files" /> :
|
||||||
0 ? (
|
<Text id="app.main.channel.misc.sent_file" /> }
|
||||||
<Text id="app.main.channel.misc.sent_multiple_files" />
|
|
||||||
) : (
|
|
||||||
<Text id="app.main.channel.misc.sent_file" />
|
|
||||||
)}
|
|
||||||
</em>
|
</em>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -112,17 +112,12 @@ export default observer(({ channel, replies, setReplies }: Props) => {
|
|||||||
<UserShort user={message.author} size={16} />
|
<UserShort user={message.author} size={16} />
|
||||||
</div>
|
</div>
|
||||||
<div class="message">
|
<div class="message">
|
||||||
{message.attachments &&
|
{message.attachments && (
|
||||||
message.attachments.length > 0 && (
|
|
||||||
<>
|
<>
|
||||||
<File size={16} />
|
<File size={16} />
|
||||||
<em>
|
<em>{message.attachments.length > 1 ?
|
||||||
{message.attachments!.length >
|
<Text id="app.main.channel.misc.sent_multiple_files" /> :
|
||||||
1 ? (
|
<Text id="app.main.channel.misc.sent_file" /> }
|
||||||
<Text id="app.main.channel.misc.sent_multiple_files" />
|
|
||||||
) : (
|
|
||||||
<Text id="app.main.channel.misc.sent_file" />
|
|
||||||
)}
|
|
||||||
</em>
|
</em>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user