|
|
@ -114,12 +114,15 @@ public class ViewModelBrowse extends ViewModel {
|
|
|
|
match = body.toLowerCase().contains(find);
|
|
|
|
match = body.toLowerCase().contains(find);
|
|
|
|
|
|
|
|
|
|
|
|
if (match) {
|
|
|
|
if (match) {
|
|
|
|
matched++;
|
|
|
|
EntityMessage exists = db.message().getMessageByUid(state.fid, message.uid, state.search != null);
|
|
|
|
message.id = null;
|
|
|
|
if (exists == null) {
|
|
|
|
message.ui_found = true;
|
|
|
|
matched++;
|
|
|
|
message.id = db.message().insertMessage(message);
|
|
|
|
message.id = null;
|
|
|
|
if (message.content)
|
|
|
|
message.ui_found = true;
|
|
|
|
message.write(state.context, body);
|
|
|
|
message.id = db.message().insertMessage(message);
|
|
|
|
|
|
|
|
if (message.content)
|
|
|
|
|
|
|
|
message.write(state.context, body);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|