Fixed error message

This commit is contained in:
M66B 2018-11-15 07:26:49 +01:00
parent f00dc24025
commit cf129acd3b
1 changed files with 9 additions and 6 deletions

View File

@ -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();