TF-2528 Add integration test for search email with sort by sender nam…e ascending

This commit is contained in:
dab246
2024-11-13 15:51:25 +07:00
committed by Dat H. Pham
parent cf2a0b08e5
commit 51a4a1b9b7
27 changed files with 591 additions and 59 deletions
@@ -955,12 +955,15 @@ class ComposerController extends BaseController
}
Future<String> _getContentInEditor() async {
final htmlTextEditor = PlatformInfo.isWeb
? _textEditorWeb
: await htmlEditorApi?.getText();
if (htmlTextEditor?.isNotEmpty == true) {
return htmlTextEditor!.removeEditorStartTag();
} else {
try {
final htmlTextEditor = PlatformInfo.isWeb
? _textEditorWeb
: await htmlEditorApi?.getText();
return htmlTextEditor?.isNotEmpty == true
? htmlTextEditor!.removeEditorStartTag()
: '';
} catch (e) {
logError('ComposerController::_getContentInEditor:Exception = $e');
return '';
}
}