TF-1626 Remove id of email when call Email/set method
(cherry picked from commit ce1d27d893fd406aa812d4e4ea9debe1ec265ddb)
This commit is contained in:
@@ -157,7 +157,9 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
||||
}
|
||||
|
||||
dartz.Tuple2<Email, Email?> _combineUpdatedWithEmailInCache(Email updatedEmail, List<Email>? emailCacheList) {
|
||||
final emailOld = emailCacheList?.findEmailById(updatedEmail.id);
|
||||
final emailOld = updatedEmail.id != null
|
||||
? emailCacheList?.findEmailById(updatedEmail.id!)
|
||||
: null;
|
||||
if (emailOld != null) {
|
||||
log('ThreadRepositoryImpl::_combineUpdatedWithEmailInCache(): cache hit');
|
||||
return dartz.Tuple2(updatedEmail, emailOld);
|
||||
|
||||
Reference in New Issue
Block a user