Skip to content

Commit

Permalink
chore(MailQuotasApiFix): Remove the need for an api fix for mail quota (
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel authored Feb 25, 2025
2 parents db4e2a0 + be714b4 commit b5eee80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,4 @@ data class KSuiteMail(
@SerialName("mailbox_id")
@ColumnInfo("mailbox_id")
val mailboxId: Int,
) {
// TODO: To remove the day the back will finally return us the size in Bytes instead of kiloBytes
inline val usedSizeInBytes get() = usedSize * 1_024
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ object MyKSuiteUiUtils {

val mailProduct = with(myKSuite.mail) {
KSuiteProductsWithQuotas.Mail(
usedSize = context.formatShortFileSize(usedSizeInBytes),
usedSize = context.formatShortFileSize(usedSize),
maxSize = context.formatShortFileSize(storageSizeLimit),
progress = computeProgress(usedSizeInBytes, storageSizeLimit),
progress = computeProgress(usedSize, storageSizeLimit),
)
}

Expand Down

0 comments on commit b5eee80

Please sign in to comment.