chore: fixes

This commit is contained in:
Tristan Yang
2024-07-16 22:36:04 +08:00
parent 0c191b4282
commit 3552999389
9 changed files with 39 additions and 26 deletions
@@ -79,7 +79,10 @@ export default function useMessageOperation({ mid, context, contextId }: Params)
loginUser?.uid == from_uid ||
loginUser?.is_admin ||
(channel && channel.owner == loginUser?.uid);
const canCopy = [ContentTypes.text, ContentTypes.markdown].includes(content_type) || isImage;
const canCopy =
[ContentTypes.text, ContentTypes.markdown, ContentTypes.audio, ContentTypes.file].includes(
content_type
) || isImage;
return {
copyContent: isImage ? copyContent.bind(null, true) : copyContent.bind(null, false),
canCopy,