TF-1512 Only use HtmlViewer to display signatures (for both html/text or plain/text formats)
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user