Fix some file with mimeType is empty cannot drag n drop attachment

(cherry picked from commit ad223e1e9d3d6da67e247341ff2da52dbcf4a412)
This commit is contained in:
dab246
2023-10-06 16:43:50 +07:00
committed by Dat H. Pham
parent 82964427b6
commit c9f329d9a8
7 changed files with 11 additions and 43 deletions
@@ -1,7 +1,7 @@
import 'package:http_parser/http_parser.dart';
import 'package:model/email/email_content_type.dart';
extension MediaTypeExtension on MediaType? {
extension MediaTypeNullableExtension on MediaType? {
EmailContentType toEmailContentType() {
if (this == null) {