Fixed revisions race condition

pull/207/head
M66B 3 years ago
parent 3736601a26
commit 535b08f795

@ -4409,6 +4409,12 @@ class Core {
try {
db.beginTransaction();
EntityMessage existing = db.message().getMessage(message.id);
if (existing != null) {
message.revision = existing.revision;
message.revisions = existing.revisions;
}
db.message().updateMessage(message);
if (process)

@ -6298,7 +6298,7 @@ public class FragmentCompose extends FragmentBase {
bottom_navigation.getMenu().findItem(R.id.action_redo).setVisible(draft.revision < draft.revisions);
if (args.getBundle("extras").getBoolean("silent")) {
etBody.setTag(etBody.getText());
etBody.setTag(null);
return;
}

Loading…
Cancel
Save