TF-1626 Remove id of email when call Email/set method
(cherry picked from commit ce1d27d893fd406aa812d4e4ea9debe1ec265ddb)
This commit is contained in:
@@ -13,7 +13,7 @@ import 'package:tmail_ui_user/features/thread/data/extensions/email_address_hive
|
||||
extension EmailCacheExtension on EmailCache {
|
||||
Email toEmail() {
|
||||
return Email(
|
||||
EmailId(Id(id)),
|
||||
id: EmailId(Id(id)),
|
||||
keywords: keywords != null
|
||||
? Map.fromIterables(keywords!.keys.map((value) => KeyWordIdentifier(value)), keywords!.values)
|
||||
: null,
|
||||
|
||||
@@ -8,7 +8,7 @@ extension EmailExtension on Email {
|
||||
|
||||
EmailCache toEmailCache() {
|
||||
return EmailCache(
|
||||
id.id.value,
|
||||
id!.id.value,
|
||||
keywords: keywords?.toMapString(),
|
||||
size: size?.value.round(),
|
||||
receivedAt: receivedAt?.value,
|
||||
|
||||
Reference in New Issue
Block a user