Fixed error message

pull/146/head
M66B 6 years ago
parent f00dc24025
commit cf129acd3b

@ -114,6 +114,8 @@ public class ViewModelBrowse extends ViewModel {
match = body.toLowerCase().contains(find);
if (match) {
EntityMessage exists = db.message().getMessageByUid(state.fid, message.uid, state.search != null);
if (exists == null) {
matched++;
message.id = null;
message.ui_found = true;
@ -122,6 +124,7 @@ public class ViewModelBrowse extends ViewModel {
message.write(state.context, body);
}
}
}
db.setTransactionSuccessful();

Loading…
Cancel
Save