mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-03 22:55:44 +01:00
Show attachment download progress, new stop button to cancel
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import filesize from 'filesize';
|
||||
|
||||
export function formatFileSize(size: number): string {
|
||||
return filesize(size, { round: 0 });
|
||||
export function formatFileSize(size: number, decimals = 0): string {
|
||||
return filesize(size, { round: decimals });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user