feat: Track storage usage

This commit is contained in:
Maksim Eltyshev
2025-08-23 00:03:20 +02:00
parent 2f4bcb0583
commit 4d77a1f596
89 changed files with 1052 additions and 304 deletions

View File

@@ -80,7 +80,7 @@ const Item = React.memo(({ id, isVisible }) => {
break;
default:
if (attachment.data.encoding === Encodings.UTF8) {
if (attachment.data.sizeInBytes <= Config.MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT) {
if (attachment.data.size <= Config.MAX_SIZE_TO_DISPLAY_CONTENT) {
content = (
<ContentViewer
src={attachment.data.url}