Cherry pick commit fix issue #4292 to master (#4454)

* Add folder info when open mail list from Label

(cherry picked from commit de0bb4ee02030ca90126766a8713a6826d791acd)

* Add unit test for `hasMailboxLabel` function in BaseEmailItemTile mixin

(cherry picked from commit 18f8d1847acccd6f95006b93903f0caa6c0408df)

* TF-4292 Add E2E test for test case `Add folder info when open mail list from Label` on mobile

(cherry picked from commit 1c209e333510db161522e4449ad7fb2e5d28399f)
This commit is contained in:
Dat Vu
2026-04-16 15:45:45 +07:00
committed by GitHub
parent 6fc88f780c
commit c5eb4a011d
13 changed files with 288 additions and 107 deletions
@@ -17,7 +17,7 @@ import 'package:tmail_ui_user/main/routes/route_utils.dart';
extension PresentationMailboxExtension on PresentationMailbox {
String getDisplayName(BuildContext context) {
if (this is PresentationLabelMailbox) {
if (isLabelMailbox) {
return (this as PresentationLabelMailbox).label.safeDisplayName;
}
@@ -52,7 +52,7 @@ extension PresentationMailboxExtension on PresentationMailbox {
}
String getDisplayNameWithoutContext(AppLocalizations appLocalizations) {
if (this is PresentationLabelMailbox) {
if (isLabelMailbox) {
return (this as PresentationLabelMailbox).label.safeDisplayName;
}