diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js
index 6bf53b57..c6694096 100644
--- a/assets/js/components/conversations/chatWindows.js
+++ b/assets/js/components/conversations/chatWindows.js
@@ -1066,7 +1066,7 @@ const ConvChatWindow = {
appendTo: messageTargetElem,
type: "a",
href: messageFile.url,
- innerHTML: " "+ messageFile.name + " (" + messageFile.size/1024 + "MB)",
+ innerHTML: " "+ messageFile.name + " ("+fileSizeToHuman(messageFile.size)+")",
})
letFileLink.target = "_blank"
}
diff --git a/assets/js/pages/conversations/conversation.js b/assets/js/pages/conversations/conversation.js
index bb7f640c..c568e89c 100644
--- a/assets/js/pages/conversations/conversation.js
+++ b/assets/js/pages/conversations/conversation.js
@@ -343,7 +343,7 @@ const ConversationPageConvPart = {
appendTo: messageContentContainer,
type: "a",
href: messageFile.url,
- innerHTML: " "+ messageFile.name + " (" + messageFile.size/1024 + "MB)",
+ innerHTML: " "+ messageFile.name + " ("+fileSizeToHuman(messageFile.size) +")",
})
letFileLink.target = "_blank"
}