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