mirror of https://github.com/M66B/FairEmail.git
Fixed error message
This commit is contained in:
parent
f00dc24025
commit
cf129acd3b
|
@ -114,6 +114,8 @@ public class ViewModelBrowse extends ViewModel {
|
||||||
match = body.toLowerCase().contains(find);
|
match = body.toLowerCase().contains(find);
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
|
EntityMessage exists = db.message().getMessageByUid(state.fid, message.uid, state.search != null);
|
||||||
|
if (exists == null) {
|
||||||
matched++;
|
matched++;
|
||||||
message.id = null;
|
message.id = null;
|
||||||
message.ui_found = true;
|
message.ui_found = true;
|
||||||
|
@ -122,6 +124,7 @@ public class ViewModelBrowse extends ViewModel {
|
||||||
message.write(state.context, body);
|
message.write(state.context, body);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue