TF-1512 Only use HtmlViewer to display signatures (for both html/text or plain/text formats)

This commit is contained in:
dab246
2023-03-01 16:02:15 +07:00
committed by Dat Vu
parent b593c8a823
commit 3f522445a9
4 changed files with 40 additions and 45 deletions
@@ -0,0 +1,15 @@
import 'package:jmap_dart_client/jmap/identities/identity.dart';
extension IdentityExtension on Identity {
String get signatureAsString {
if (htmlSignature?.value.isNotEmpty == true) {
return htmlSignature!.value;
} else if (textSignature?.value.isNotEmpty == true) {
return textSignature!.value;
} else {
return '';
}
}
}