-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF-3548 Handle exceeded quota #3557
base: master
Are you sure you want to change the base?
Conversation
This PR has been deployed to https://linagora.github.io/tmail-flutter/3557. |
if (used == null || hardLimit == null || !isHardLimitReached) return ''; | ||
|
||
return filesize((used!.value - hardLimit!.value)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- It seems incorrect. Let's see the old logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
|
|
String get exceeded { | ||
if (!isHardLimitReached) return ''; | ||
|
||
return filesize((used!.value - presentationHardLimit!.value)); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in use
"quotaExceedAmount": "{amount} exceeded", | ||
"@quotaExceedAmount": { | ||
"type": "text", | ||
"placeholders_order": [ | ||
"amount" | ||
], | ||
"placeholders": { | ||
"amount": {} | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in use
String quotaExceedAmount(String amount) { | ||
return Intl.message( | ||
'$amount exceeded', | ||
name: 'quotaExceedAmount', | ||
args: [amount], | ||
); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in use
Issue
Demo
Screen.Recording.2025-03-17.at.11.49.57.mov