TF-4233 Fix the response success check to use key presence instead of value nullness.

This commit is contained in:
dab246
2026-01-23 12:06:55 +07:00
committed by Dat H. Pham
parent 6551750bd2
commit 69c3d32e3c
10 changed files with 49 additions and 29 deletions
@@ -16,19 +16,19 @@ extension HandleLabelActionTypeExtension on MailboxDashBoardController {
if (PlatformInfo.isWeb) {
isPopupMenuOpened.value = true;
}
return labelController
.openLabelMenuAction(
try {
await labelController.openLabelMenuAction(
context,
imagePaths,
label,
position: position,
_onPerformLabelActionType,
)
.whenComplete(() {
if (PlatformInfo.isWeb) {
isPopupMenuOpened.value = false;
}
});
);
} finally {
if (PlatformInfo.isWeb) {
isPopupMenuOpened.value = false;
}
}
}
void _onPerformLabelActionType(Label label, LabelActionType actionType) {